|
@@ -8,6 +8,7 @@ import javax.jws.WebService;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
+import com.jtgh.yjpt.common.Constants;
|
|
import com.jtgh.yjpt.common.GlobalData;
|
|
import com.jtgh.yjpt.common.GlobalData;
|
|
import com.jtgh.yjpt.entity.jyr.JyrEntity;
|
|
import com.jtgh.yjpt.entity.jyr.JyrEntity;
|
|
import com.jtgh.yjpt.entity.yjgl.zdwxyfb.CgEntity;
|
|
import com.jtgh.yjpt.entity.yjgl.zdwxyfb.CgEntity;
|
|
@@ -39,6 +40,7 @@ public class CgWebService extends BaseWebService {
|
|
entity.setSzd(entity.getSzd());
|
|
entity.setSzd(entity.getSzd());
|
|
entity.setAddUser(GlobalData.TB_USER);
|
|
entity.setAddUser(GlobalData.TB_USER);
|
|
entity.setUpdateUser(GlobalData.TB_USER);
|
|
entity.setUpdateUser(GlobalData.TB_USER);
|
|
|
|
+ entity.setTbzt(Constants.NO);
|
|
entity = cgService.save(entity);
|
|
entity = cgService.save(entity);
|
|
return entity;
|
|
return entity;
|
|
}
|
|
}
|
|
@@ -46,6 +48,7 @@ public class CgWebService extends BaseWebService {
|
|
public WsResult delete(CgEntity entity) {
|
|
public WsResult delete(CgEntity entity) {
|
|
WsResult ws = new WsResult();
|
|
WsResult ws = new WsResult();
|
|
try {
|
|
try {
|
|
|
|
+ entity.setTbzt(Constants.NO);
|
|
cgService.logicDelete(entity.getId());
|
|
cgService.logicDelete(entity.getId());
|
|
zbhjjbqkService.logicDelete(zbhjjbqkService.findBySscg(entity));
|
|
zbhjjbqkService.logicDelete(zbhjjbqkService.findBySscg(entity));
|
|
ws.setResultCode(WsResult.SUCCESS);
|
|
ws.setResultCode(WsResult.SUCCESS);
|