build_app
This commit is contained in:
@@ -128,6 +128,57 @@ addCustomMenu( "Basicp3","Basicp3", "Transcations");
|
||||
addCustomMenu( "Basicp2","Basicp2", "Transcations");
|
||||
|
||||
|
||||
addCustomMenu( "Basicp1","Basicp1", "Transcations");
|
||||
|
||||
|
||||
addCustomMenu( "Childform","Childform", "Transcations");
|
||||
|
||||
|
||||
addCustomMenu( "District","District", "Transcations");
|
||||
|
||||
|
||||
addCustomMenu( "State","State", "Transcations");
|
||||
|
||||
|
||||
addCustomMenu( "Country","Country", "Transcations");
|
||||
|
||||
|
||||
addCustomMenu( "Ad9","Ad9", "Transcations");
|
||||
|
||||
|
||||
addCustomMenu( "Ad8","Ad8", "Transcations");
|
||||
|
||||
|
||||
addCustomMenu( "Ad7","Ad7", "Transcations");
|
||||
|
||||
|
||||
addCustomMenu( "Ad6","Ad6", "Transcations");
|
||||
|
||||
|
||||
addCustomMenu( "Adv5","Adv5", "Transcations");
|
||||
|
||||
|
||||
addCustomMenu( "Adv4","Adv4", "Transcations");
|
||||
|
||||
|
||||
addCustomMenu( "Support","Support", "Transcations");
|
||||
|
||||
|
||||
addCustomMenu( "Adv3","Adv3", "Transcations");
|
||||
|
||||
|
||||
addCustomMenu( "Dv2","Dv2", "Transcations");
|
||||
|
||||
|
||||
addCustomMenu( "Adv1","Adv1", "Transcations");
|
||||
|
||||
|
||||
addCustomMenu( "Basicp3","Basicp3", "Transcations");
|
||||
|
||||
|
||||
addCustomMenu( "Basicp2","Basicp2", "Transcations");
|
||||
|
||||
|
||||
addCustomMenu( "Basicp1","Basicp1", "Transcations");
|
||||
|
||||
|
||||
|
||||
@@ -26,6 +26,8 @@ import com.realnet.stpkg.Entity.Childform;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@RequestMapping(value = "/Ad8")
|
||||
@CrossOrigin("*")
|
||||
@RestController
|
||||
@@ -44,6 +46,8 @@ public class Ad8Controller {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@PostMapping("/Ad8")
|
||||
public Ad8 Savedata(@RequestBody Ad8 data) {
|
||||
Ad8 save = Service.Savedata(data) ;
|
||||
@@ -54,6 +58,8 @@ public class Ad8Controller {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
System.out.println("data saved..." + save);
|
||||
|
||||
return save;
|
||||
@@ -120,4 +126,6 @@ public class Ad8Controller {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -26,6 +26,8 @@ import com.realnet.stpkg.Entity.Childform;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@RequestMapping(value = "/token/Ad8")
|
||||
@CrossOrigin("*")
|
||||
@RestController
|
||||
@@ -44,6 +46,8 @@ public class tokenFree_Ad8Controller {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@PostMapping("/Ad8")
|
||||
public Ad8 Savedata(@RequestBody Ad8 data) {
|
||||
Ad8 save = Service.Savedata(data) ;
|
||||
@@ -54,6 +58,8 @@ public class tokenFree_Ad8Controller {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
System.out.println("data saved..." + save);
|
||||
|
||||
return save;
|
||||
@@ -120,4 +126,6 @@ public class tokenFree_Ad8Controller {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -12,6 +12,8 @@ import com.realnet.WhoColumn.Entity.Extension;
|
||||
|
||||
import com.realnet.stpkg.Entity.Childform;
|
||||
|
||||
import com.realnet.angulardatatype.Entity.Support;
|
||||
|
||||
@Entity
|
||||
@Data
|
||||
public class Ad8 extends Extension {
|
||||
@@ -33,5 +35,8 @@ private String name;
|
||||
@OneToOne( cascade=CascadeType.ALL)
|
||||
private Childform childform;
|
||||
|
||||
@OneToMany( cascade=CascadeType.ALL)
|
||||
private List<Support> support = new ArrayList<>();
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -16,6 +16,8 @@ import java.util.*;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -26,6 +26,8 @@ import com.realnet.stpkg.Repository.ChildformRepository;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Service
|
||||
@@ -43,6 +45,8 @@ private Ad8Repository Repository;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public Ad8 Savedata(Ad8 data) {
|
||||
|
||||
|
||||
@@ -52,6 +56,8 @@ public Ad8 Savedata(Ad8 data) {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
data.setUpdatedBy(getUser().getUserId());
|
||||
data.setCreatedBy(getUser().getUserId());
|
||||
data.setAccountId(getUser().getAccount().getAccount_id());
|
||||
@@ -91,6 +97,8 @@ old.setName(data.getName());
|
||||
|
||||
old.setChildform(data.getChildform());
|
||||
|
||||
old.setSupport(data.getSupport());
|
||||
|
||||
final Ad8 test = Repository.save(old);
|
||||
data.setUpdatedBy(getUser().getUserId());
|
||||
return test;}
|
||||
@@ -168,6 +176,8 @@ final Ad8 test = Repository.save(old);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public AppUser getUser() {
|
||||
AppUser user = userService.getLoggedInUser();
|
||||
return user;
|
||||
|
||||
Reference in New Issue
Block a user