预算编制生成
This commit is contained in:
parent
18557d988b
commit
7e4fadbd82
|
@ -2,6 +2,7 @@ package com.hzya.frame.plugin.c4project.dao;
|
||||||
|
|
||||||
import com.hzya.frame.basedao.dao.IBaseDao;
|
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||||
import com.hzya.frame.plugin.c4project.entity.C4ProjectEntity;
|
import com.hzya.frame.plugin.c4project.entity.C4ProjectEntity;
|
||||||
|
import com.hzya.frame.plugin.c4project.entity.LexmisC4ProjectEntity;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@ -26,4 +27,6 @@ public interface IC4ProjectDao extends IBaseDao<C4ProjectEntity,String> {
|
||||||
* @Date 2025-05-14 11:53
|
* @Date 2025-05-14 11:53
|
||||||
* **/
|
* **/
|
||||||
Integer saveC4Project(C4ProjectEntity entity);
|
Integer saveC4Project(C4ProjectEntity entity);
|
||||||
|
|
||||||
|
List<LexmisC4ProjectEntity> queryAffair(LexmisC4ProjectEntity lexmisC4ProjectEntity);
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,8 @@ import com.baomidou.dynamic.datasource.annotation.DS;
|
||||||
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||||
import com.hzya.frame.plugin.c4project.dao.IC4ProjectDao;
|
import com.hzya.frame.plugin.c4project.dao.IC4ProjectDao;
|
||||||
import com.hzya.frame.plugin.c4project.entity.C4ProjectEntity;
|
import com.hzya.frame.plugin.c4project.entity.C4ProjectEntity;
|
||||||
|
import com.hzya.frame.plugin.c4project.entity.LexmisC4ProjectEntity;
|
||||||
|
import com.hzya.frame.plugin.nuonuo.entity.NuoNuoEntity;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@ -19,4 +21,11 @@ public class C4ProjectDaoImpl extends MybatisGenericDao<C4ProjectEntity,String>
|
||||||
public Integer saveC4Project(C4ProjectEntity entity) {
|
public Integer saveC4Project(C4ProjectEntity entity) {
|
||||||
return super.insert("saveC4Project",entity);
|
return super.insert("saveC4Project",entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@DS("#entity.dataSourceCode")
|
||||||
|
@Override
|
||||||
|
public List<LexmisC4ProjectEntity> queryAffair(LexmisC4ProjectEntity entity) {
|
||||||
|
return (List<LexmisC4ProjectEntity>) super.selectList(getSqlIdPrifx()+"queryAffair",entity);
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,11 +28,13 @@
|
||||||
WHEN '-6504696439968085996' THEN '-978677123947674601'
|
WHEN '-6504696439968085996' THEN '-978677123947674601'
|
||||||
WHEN '7045878877534307194' THEN '670869647114347'
|
WHEN '7045878877534307194' THEN '670869647114347'
|
||||||
WHEN '-5302246194420562875' THEN '-3530937844003287164'
|
WHEN '-5302246194420562875' THEN '-3530937844003287164'
|
||||||
|
WHEN '-8106884040682618016' THEN '-3759985945848298333'
|
||||||
END AS caBudgetorg,
|
END AS caBudgetorg,
|
||||||
CASE main.field0052
|
CASE main.field0052
|
||||||
WHEN '-6504696439968085996' THEN '浙江三维利普维网络有限公司'
|
WHEN '-6504696439968085996' THEN '浙江三维利普维网络有限公司'
|
||||||
WHEN '7045878877534307194' THEN '三维通信股份有限公司'
|
WHEN '7045878877534307194' THEN '三维通信股份有限公司'
|
||||||
WHEN '-5302246194420562875' THEN '浙江三维通信科技有限公司'
|
WHEN '-5302246194420562875' THEN '浙江三维通信科技有限公司'
|
||||||
|
WHEN '-8106884040682618016' THEN '浙江三维通信研究院有限公司'
|
||||||
END AS caBudgetornm,
|
END AS caBudgetornm,
|
||||||
'项目档案' as caFathernm,
|
'项目档案' as caFathernm,
|
||||||
'0' as caFactmat,
|
'0' as caFactmat,
|
||||||
|
@ -55,6 +57,7 @@ and field0052 in (
|
||||||
'-6504696439968085996',-- -978677123947674601 浙江三维利普维网络有限公司
|
'-6504696439968085996',-- -978677123947674601 浙江三维利普维网络有限公司
|
||||||
'7045878877534307194',-- 670869647114347 三维通信股份有限公司
|
'7045878877534307194',-- 670869647114347 三维通信股份有限公司
|
||||||
'-5302246194420562875' -- -3530937844003287164 浙江三维通信科技有限公司
|
'-5302246194420562875' -- -3530937844003287164 浙江三维通信科技有限公司
|
||||||
|
'-8106884040682618016' -- -3759985945848298333 浙江三维通信研究院有限公司
|
||||||
)
|
)
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
@ -96,5 +99,11 @@ and field0052 in (
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
|
|
||||||
|
<select id="queryAffair" resultType="com.hzya.frame.plugin.c4project.entity.LexmisC4ProjectEntity" parameterType="com.hzya.frame.plugin.c4project.entity.LexmisC4ProjectEntity">
|
||||||
|
select NODE_NAME as noname,NODE_POLICY as nodename from ctp_affair
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="affairId != null and affairId !='' ">id = #{affairId} </if>
|
||||||
|
</trim>
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,47 @@
|
||||||
|
package com.hzya.frame.plugin.c4project.entity;
|
||||||
|
|
||||||
|
import com.hzya.frame.web.entity.BaseEntity;
|
||||||
|
|
||||||
|
public class LexmisC4ProjectEntity extends BaseEntity {
|
||||||
|
|
||||||
|
private String id;
|
||||||
|
private String affairId;
|
||||||
|
|
||||||
|
private String noname;
|
||||||
|
private String nodename;
|
||||||
|
|
||||||
|
public String getAffairId() {
|
||||||
|
return affairId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAffairId(String affairId) {
|
||||||
|
this.affairId = affairId;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setId(String id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getNoname() {
|
||||||
|
return noname;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNoname(String noname) {
|
||||||
|
this.noname = noname;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getNodename() {
|
||||||
|
return nodename;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNodename(String nodename) {
|
||||||
|
this.nodename = nodename;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,204 @@
|
||||||
|
package com.hzya.frame.plugin.c4project.plugin;
|
||||||
|
import cn.hutool.http.HttpRequest;
|
||||||
|
import com.alibaba.fastjson.JSONArray;
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import com.hzya.frame.base.PluginBaseEntity;
|
||||||
|
import com.hzya.frame.plugin.c4project.dao.IC4ProjectDao;
|
||||||
|
import com.hzya.frame.plugin.c4project.entity.LexmisC4ProjectEntity;
|
||||||
|
import com.hzya.frame.plugin.masterData.plugin.MdmPluginInitializer;
|
||||||
|
import com.hzya.frame.plugin.nuonuo.entity.NuoNuoEntity;
|
||||||
|
import com.hzya.frame.plugin.nuonuo.service.INuoNuoService;
|
||||||
|
import com.hzya.frame.seeyon.lexmisC4.entity.LexmisC4DetailEntity;
|
||||||
|
import com.hzya.frame.seeyon.lexmisC4.entity.LexmisC4Entity;
|
||||||
|
import com.hzya.frame.seeyon.lexmisC4.service.ILexmisC4Service;
|
||||||
|
import com.hzya.frame.sysnew.comparison.masterData.service.IMasterDataService;
|
||||||
|
import com.hzya.frame.web.entity.BaseResult;
|
||||||
|
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.text.ParseException;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 诺诺发票
|
||||||
|
*
|
||||||
|
* @author makejava
|
||||||
|
* @since 2024-06-21 13:52:35
|
||||||
|
*/
|
||||||
|
public class LexmisC4ProjectPluginInitializer extends PluginBaseEntity{
|
||||||
|
Logger logger = LoggerFactory.getLogger(LexmisC4ProjectPluginInitializer.class);
|
||||||
|
@Autowired
|
||||||
|
private ILexmisC4Service lexmisC4Service;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IC4ProjectDao ic4ProjectDao;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void initialize() {
|
||||||
|
logger.info(getPluginLabel() + "执行初始化方法initialize()");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void destroy() {
|
||||||
|
logger.info(getPluginLabel() + "执行销毁方法destroy()");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getPluginId() {
|
||||||
|
return "LexmisC4ProjectPlugin";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getPluginName() {
|
||||||
|
return "LexmisC4ProjectPlugin插件";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getPluginLabel() {
|
||||||
|
return "LexmisC4ProjectPlugin";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getPluginType() {
|
||||||
|
return "1";
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
public JsonResultEntity executeBusiness(JSONObject requestJson) {
|
||||||
|
try {
|
||||||
|
logger.info("======开始执行研发项目同步预算编制========");
|
||||||
|
|
||||||
|
logger.error("研发项目同步预算编制节点参数:" + requestJson.toJSONString());
|
||||||
|
JSONObject jsonStr = requestJson.getJSONObject("jsonStr");
|
||||||
|
if (jsonStr == null) {
|
||||||
|
return BaseResult.getFailureMessageEntity("系统错误");
|
||||||
|
}
|
||||||
|
JSONObject businessDataStr = jsonStr.getJSONObject("businessDataStr");
|
||||||
|
if (businessDataStr == null) {
|
||||||
|
return BaseResult.getFailureMessageEntity("系统错误");
|
||||||
|
}
|
||||||
|
String affairId = jsonStr.getString("affairId");
|
||||||
|
if (affairId != null && !"".equals(affairId)) {
|
||||||
|
LexmisC4ProjectEntity lexmisC4ProjectEntity = new LexmisC4ProjectEntity();
|
||||||
|
lexmisC4ProjectEntity.setDataSourceCode("SW-OA");
|
||||||
|
lexmisC4ProjectEntity.setAffairId(affairId);
|
||||||
|
List<LexmisC4ProjectEntity> lexmisC4ProjectEntities = ic4ProjectDao.queryAffair(lexmisC4ProjectEntity);
|
||||||
|
if (lexmisC4ProjectEntities != null && lexmisC4ProjectEntities.size() == 1) {
|
||||||
|
if (lexmisC4ProjectEntities.get(0).getNoname() != null) {
|
||||||
|
if ("传银企终审".equals(lexmisC4ProjectEntities.get(0).getNoname()) || "传银企终审".equals(lexmisC4ProjectEntities.get(0).getNodename())
|
||||||
|
|| "生成C4预算".equals(lexmisC4ProjectEntities.get(0).getNoname()) || "生成C4预算".equals(lexmisC4ProjectEntities.get(0).getNodename())) {
|
||||||
|
return sendLexmis(requestJson);
|
||||||
|
} else {
|
||||||
|
return BaseResult.getFailureMessageEntity("节点查找失败");
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return BaseResult.getFailureMessageEntity("节点查找失败");
|
||||||
|
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return BaseResult.getFailureMessageEntity("节点查找失败");
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return BaseResult.getFailureMessageEntity("节点查找失败");
|
||||||
|
}
|
||||||
|
|
||||||
|
}catch (Exception e){
|
||||||
|
logger.error("======执行开始执行研发项目同步预算编制失败:{}========",e.getMessage());
|
||||||
|
return BaseResult.getFailureMessageEntity("研发项目同步预算编制失败");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author lvleigang
|
||||||
|
* @Description 保存预算编制
|
||||||
|
* @Date 11:24 上午 2025/7/11
|
||||||
|
* @param requestJson
|
||||||
|
* @return com.hzya.frame.web.entity.JsonResultEntity
|
||||||
|
**/
|
||||||
|
public JsonResultEntity sendLexmis(JSONObject requestJson) {
|
||||||
|
logger.error("同步预算编制:" + requestJson.toJSONString());
|
||||||
|
JSONObject jsonStr = requestJson.getJSONObject("jsonStr");
|
||||||
|
if (jsonStr == null) {
|
||||||
|
return BaseResult.getFailureMessageEntity("系统错误");
|
||||||
|
}
|
||||||
|
JSONObject businessDataStr = jsonStr.getJSONObject("businessDataStr");
|
||||||
|
if (businessDataStr == null) {
|
||||||
|
return BaseResult.getFailureMessageEntity("系统错误");
|
||||||
|
}
|
||||||
|
JSONObject mainData = businessDataStr.getJSONObject("formmain_9555");
|
||||||
|
if (mainData == null) {
|
||||||
|
return BaseResult.getFailureMessageEntity("系统错误");
|
||||||
|
}
|
||||||
|
JSONArray detailArray = businessDataStr.getJSONArray("formson_11993");
|
||||||
|
if(detailArray == null || detailArray.size() == 0){
|
||||||
|
return BaseResult.getFailureMessageEntity("费用明细为空,请检查");
|
||||||
|
}
|
||||||
|
//组装数据
|
||||||
|
LexmisC4Entity lexmisC4Entity = new LexmisC4Entity();
|
||||||
|
lexmisC4Entity.setDataSourceCode("SW-OA");
|
||||||
|
if(mainData.getString("field0052") == null || "".equals(mainData.getString("field0052"))){
|
||||||
|
return BaseResult.getFailureMessageEntity("项目归属主体为空,请检查");
|
||||||
|
}
|
||||||
|
if("-6504696439968085996".equals(mainData.getString("field0052"))){
|
||||||
|
lexmisC4Entity.setSmBudgetOrg("-978677123947674601");//预算单位代号
|
||||||
|
lexmisC4Entity.setSmBudgetOrgNm("'浙江三维利普维网络有限公司'");//预算单位名称
|
||||||
|
}else if("7045878877534307194".equals(mainData.getString("field0052"))){
|
||||||
|
lexmisC4Entity.setSmBudgetOrg("'670869647114347'");//预算单位代号
|
||||||
|
lexmisC4Entity.setSmBudgetOrgNm("'三维通信股份有限公司'");//预算单位名称
|
||||||
|
}else if("-5302246194420562875".equals(mainData.getString("field0052"))){
|
||||||
|
lexmisC4Entity.setSmBudgetOrg("-3530937844003287164");//预算单位代号
|
||||||
|
lexmisC4Entity.setSmBudgetOrgNm("'浙江三维通信科技有限公司'");//预算单位名称
|
||||||
|
}else if("-8106884040682618016".equals(mainData.getString("field0052"))){
|
||||||
|
lexmisC4Entity.setSmBudgetOrg("-3759985945848298333");//预算单位代号
|
||||||
|
lexmisC4Entity.setSmBudgetOrgNm("'浙江三维通信研究院有限公司'");//预算单位名称
|
||||||
|
}else {
|
||||||
|
return BaseResult.getSuccessMessageEntity("项目归属主体不是这四个,不同步");
|
||||||
|
}
|
||||||
|
lexmisC4Entity.setSmClose(0);//预算表关闭, 0 = 未关闭 1 = 已关闭
|
||||||
|
lexmisC4Entity.setSmYear(0);//预算年度
|
||||||
|
lexmisC4Entity.setSmCaseno(mainData.getString("field0047"));//项目编号
|
||||||
|
lexmisC4Entity.setSmCasenm(mainData.getString("field0012"));//项目名称
|
||||||
|
lexmisC4Entity.setSmPlanNo("002");//方案代号
|
||||||
|
lexmisC4Entity.setSmPlanNm("专项项目预算");//方案名称
|
||||||
|
lexmisC4Entity.setSmMaker(mainData.getString("field0009"));//编制人
|
||||||
|
lexmisC4Entity.setSmMakerNm(mainData.getString("field0085"));//编制人名称
|
||||||
|
lexmisC4Entity.setSmCDate(mainData.getDate("field0086"));//编制日期
|
||||||
|
lexmisC4Entity.setSmCheck(0);//是否审核,0=未审核 1=全部审核 2=部份审核
|
||||||
|
lexmisC4Entity.setSmMonth(0);//起始月份
|
||||||
|
lexmisC4Entity.setSmEYear(0);//截止年度
|
||||||
|
lexmisC4Entity.setSmEMonth(0);//截止月份
|
||||||
|
lexmisC4Entity.setSmOAno(mainData.getString("field0001"));//OA 单据编号
|
||||||
|
|
||||||
|
List<LexmisC4DetailEntity> detailEntityList = new ArrayList<>();
|
||||||
|
for (int i = 0; i < detailArray.size(); i++) {
|
||||||
|
LexmisC4DetailEntity lexmisC4DetailEntity = new LexmisC4DetailEntity();
|
||||||
|
lexmisC4DetailEntity.setDataSourceCode("SW-OA");
|
||||||
|
lexmisC4DetailEntity.setSdPlanNo("002");//方案代号,同抬头存
|
||||||
|
lexmisC4DetailEntity.setSdPlanNm("专项项目预算");//方案名称,同抬头存
|
||||||
|
lexmisC4DetailEntity.setSdMaker(mainData.getString("field0009"));//编制人
|
||||||
|
lexmisC4DetailEntity.setSdMakerNm(mainData.getString("field0085"));//编制人名称
|
||||||
|
lexmisC4DetailEntity.setSdCDate(mainData.getDate("field0086"));//编制日期
|
||||||
|
lexmisC4DetailEntity.setSdCheck(0);//是否审核,0 = 未审核 1 = 已审核
|
||||||
|
lexmisC4DetailEntity.setSdChargeNo(detailArray.getJSONObject(i).getString("field0090"));//费用编号
|
||||||
|
lexmisC4DetailEntity.setSdChargeNm(detailArray.getJSONObject(i).getString("field0088"));//费用名称
|
||||||
|
lexmisC4DetailEntity.setSdMoney1(detailArray.getJSONObject(i).getBigDecimal("field0089"));// 第 1 期金额,初次预算金额
|
||||||
|
lexmisC4DetailEntity.setSdShareBudget(1);// 预算共用,1勾选0取消
|
||||||
|
lexmisC4DetailEntity.setSd999(detailArray.getJSONObject(i).getString("field0069"));// 部门
|
||||||
|
lexmisC4DetailEntity.setSd999Nm(detailArray.getJSONObject(i).getString("field0069"));// 部门
|
||||||
|
lexmisC4DetailEntity.setSdCtrlMode(2);// 当期控制强度,0不控制1弱控制2强控制
|
||||||
|
lexmisC4DetailEntity.setSdCtrlModeYear(2);// 超年控制强度,0不控制1弱控制2强控制
|
||||||
|
lexmisC4DetailEntity.setSdRefreshCtrl(1);// 是否需要升级强度标识
|
||||||
|
detailEntityList.add(lexmisC4DetailEntity);
|
||||||
|
}
|
||||||
|
lexmisC4Entity.setDetailEntityList(detailEntityList);
|
||||||
|
|
||||||
|
//return BaseResult.getFailureMessageEntity("错误");
|
||||||
|
|
||||||
|
//保存数据
|
||||||
|
return lexmisC4Service.saveLexmisC4(lexmisC4Entity);
|
||||||
|
}
|
||||||
|
}
|
|
@ -153,7 +153,7 @@ public class NuoNuoServiceImpl extends BaseService<NuoNuoEntity, String> impleme
|
||||||
}
|
}
|
||||||
data.put("billdate", mainData.getString("field0151"));
|
data.put("billdate", mainData.getString("field0151"));
|
||||||
data.put("busidate", mainData.getString("field0151"));
|
data.put("busidate", mainData.getString("field0151"));
|
||||||
data.put("pk_psndoc", "seeyon");
|
data.put("pk_psndoc", mainData.getString("field0006"));
|
||||||
data.put("scomment", "");
|
data.put("scomment", "");
|
||||||
data.put("objtype", "0");
|
data.put("objtype", "0");
|
||||||
data.put("tradingCode", mainData.getString("field0091"));
|
data.put("tradingCode", mainData.getString("field0091"));
|
||||||
|
@ -302,14 +302,19 @@ public class NuoNuoServiceImpl extends BaseService<NuoNuoEntity, String> impleme
|
||||||
sendData.put("checkBlue", 0);//开具红票时是否校验蓝票 0.校验蓝票是否存在诺税通 1.不校验蓝票是否存在诺税通但校验可冲红金额 2.不校验蓝票是否存在诺税通且不校验可冲红金额
|
sendData.put("checkBlue", 0);//开具红票时是否校验蓝票 0.校验蓝票是否存在诺税通 1.不校验蓝票是否存在诺税通但校验可冲红金额 2.不校验蓝票是否存在诺税通且不校验可冲红金额
|
||||||
JSONArray sendArray = new JSONArray();
|
JSONArray sendArray = new JSONArray();
|
||||||
|
|
||||||
boolean flag = false;
|
String ys = null;
|
||||||
String field0177 = null;
|
String field0177 = null;
|
||||||
|
String field0190 = null;
|
||||||
if (detailArray != null && detailArray.size() > 0) {
|
if (detailArray != null && detailArray.size() > 0) {
|
||||||
for (int i = 0; i < detailArray.size(); i++) {
|
for (int i = 0; i < detailArray.size(); i++) {
|
||||||
if (detailArray.getJSONObject(i).getString("field0166") != null && "经营租赁".equals(detailArray.getJSONObject(i).getString("field0166"))) {
|
if (detailArray.getJSONObject(i).getString("field0193") != null && "06".equals(detailArray.getJSONObject(i).getString("field0193"))) {
|
||||||
flag = true;
|
ys = "06";
|
||||||
field0177 = detailArray.getJSONObject(i).getString("field0177");
|
field0177 = detailArray.getJSONObject(i).getString("field0177");
|
||||||
}
|
}
|
||||||
|
if (detailArray.getJSONObject(i).getString("field0193") != null && "03".equals(detailArray.getJSONObject(i).getString("field0193"))) {
|
||||||
|
ys = "03";
|
||||||
|
field0190 = detailArray.getJSONObject(i).getString("field0190");
|
||||||
|
}
|
||||||
JSONObject detail = new JSONObject();
|
JSONObject detail = new JSONObject();
|
||||||
detail.put("detailIndex", detailArray.getJSONObject(i).getString("field0147"));//明细序号数电票明细行必须从1开始编号
|
detail.put("detailIndex", detailArray.getJSONObject(i).getString("field0147"));//明细序号数电票明细行必须从1开始编号
|
||||||
detail.put("detailType", 0);//明细行性质:0,正常行;1,折扣行;2,被折扣行
|
detail.put("detailType", 0);//明细行性质:0,正常行;1,折扣行;2,被折扣行
|
||||||
|
@ -340,8 +345,8 @@ public class NuoNuoServiceImpl extends BaseService<NuoNuoEntity, String> impleme
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
sendData.put("detail", sendArray);
|
sendData.put("detail", sendArray);
|
||||||
if (flag) {
|
if ("06".equals(ys)) {
|
||||||
sendData.put("specificFactor", mainData.getString("field0187"));//不动产租赁发票
|
sendData.put("specificFactor", "06");//不动产租赁发票
|
||||||
JSONArray realPropertyRentInfoList = new JSONArray();
|
JSONArray realPropertyRentInfoList = new JSONArray();
|
||||||
JSONObject detail = new JSONObject();
|
JSONObject detail = new JSONObject();
|
||||||
detail.put("realPropertyAddress", mainData.getString("field0182"));//不动产地址
|
detail.put("realPropertyAddress", mainData.getString("field0182"));//不动产地址
|
||||||
|
@ -361,6 +366,23 @@ public class NuoNuoServiceImpl extends BaseService<NuoNuoEntity, String> impleme
|
||||||
detail.put("unit", mainData.getString("field0186"));//面积单位(默认平方米)
|
detail.put("unit", mainData.getString("field0186"));//面积单位(默认平方米)
|
||||||
realPropertyRentInfoList.add(detail);
|
realPropertyRentInfoList.add(detail);
|
||||||
sendData.put("realPropertyRentInfoList", realPropertyRentInfoList);//不动产租赁发票
|
sendData.put("realPropertyRentInfoList", realPropertyRentInfoList);//不动产租赁发票
|
||||||
|
}else if ("03".equals(ys)) {
|
||||||
|
sendData.put("specificFactor", "03");//建筑服务
|
||||||
|
JSONArray realPropertyRentInfoList = new JSONArray();
|
||||||
|
JSONObject detail = new JSONObject();
|
||||||
|
detail.put("buildingAddress", mainData.getString("field0182"));//建筑服务发生地
|
||||||
|
detail.put("detailedAddress", mainData.getString("field0180"));//不动产详细地址
|
||||||
|
detail.put("landVatItemNo", mainData.getString("field0194"));//土地增值税项目编号
|
||||||
|
detail.put("itemName", field0190);//项目名称
|
||||||
|
detail.put("taxRelatedNumber", mainData.getString("field0196"));//跨区域涉税事项报验管理编号
|
||||||
|
|
||||||
|
if (mainData.getString("field0185") != null && "1".equals(mainData.getString("field0185"))) {
|
||||||
|
detail.put("crossCityFlag", 1);//跨地市标志
|
||||||
|
} else {
|
||||||
|
detail.put("crossCityFlag", 0);//跨地市标志
|
||||||
|
}
|
||||||
|
realPropertyRentInfoList.add(detail);
|
||||||
|
sendData.put("invoiceBuildingInfo", realPropertyRentInfoList);//不动产租赁发票
|
||||||
}else {
|
}else {
|
||||||
StringBuffer asd = new StringBuffer();
|
StringBuffer asd = new StringBuffer();
|
||||||
if(mainData.getString("field0179") != null){
|
if(mainData.getString("field0179") != null){
|
||||||
|
@ -662,7 +684,7 @@ public class NuoNuoServiceImpl extends BaseService<NuoNuoEntity, String> impleme
|
||||||
}
|
}
|
||||||
data.put("billdate", mainData.getString("field0151"));
|
data.put("billdate", mainData.getString("field0151"));
|
||||||
data.put("busidate", mainData.getString("field0151"));
|
data.put("busidate", mainData.getString("field0151"));
|
||||||
data.put("pk_psndoc", "seeyon");
|
data.put("pk_psndoc", mainData.getString("field0006"));
|
||||||
data.put("scomment", "");
|
data.put("scomment", "");
|
||||||
data.put("objtype", "0");
|
data.put("objtype", "0");
|
||||||
data.put("tradingCode", mainData.getString("field0091"));
|
data.put("tradingCode", mainData.getString("field0091"));
|
||||||
|
|
|
@ -2,4 +2,5 @@
|
||||||
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
|
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
|
||||||
<beans default-autowire="byName">
|
<beans default-autowire="byName">
|
||||||
<bean name="C4ProjectPluginInitializer" class="com.hzya.frame.plugin.c4project.plugin.C4ProjectPluginInitializer" />
|
<bean name="C4ProjectPluginInitializer" class="com.hzya.frame.plugin.c4project.plugin.C4ProjectPluginInitializer" />
|
||||||
|
<bean name="LexmisC4ProjectPluginInitializer" class="com.hzya.frame.plugin.c4project.plugin.LexmisC4ProjectPluginInitializer" />
|
||||||
</beans>
|
</beans>
|
||||||
|
|
|
@ -0,0 +1,30 @@
|
||||||
|
package com.hzya.frame.seeyon.lexmisC4.dao;
|
||||||
|
|
||||||
|
|
||||||
|
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||||
|
import com.hzya.frame.seeyon.lexmisC4.entity.LexmisC4CheckEntity;
|
||||||
|
import com.hzya.frame.seeyon.lexmisC4.entity.LexmisC4CheckSourceEntity;
|
||||||
|
import com.hzya.frame.seeyon.lexmisC4.entity.LexmisC4DetailEntity;
|
||||||
|
import com.hzya.frame.seeyon.lexmisC4.entity.LexmisC4Entity;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface ILexmisC4Dao extends IBaseDao<LexmisC4Entity, String> {
|
||||||
|
|
||||||
|
List<LexmisC4Entity> queryXmList(LexmisC4Entity entity);
|
||||||
|
|
||||||
|
List<LexmisC4Entity> selectLexmisC4(LexmisC4Entity lexmisC4Entity);
|
||||||
|
|
||||||
|
List<LexmisC4Entity> selectMaxList(LexmisC4Entity maxNo);
|
||||||
|
|
||||||
|
int insertLexmisC4(LexmisC4Entity entity);
|
||||||
|
|
||||||
|
List<LexmisC4DetailEntity> selectMinList(LexmisC4DetailEntity minEntity);
|
||||||
|
|
||||||
|
int insertLexmisC4Detail(LexmisC4DetailEntity lexmisC4DetailEntity);
|
||||||
|
|
||||||
|
int saveC4Check(LexmisC4CheckEntity lexmisC4CheckEntity);
|
||||||
|
|
||||||
|
int insertCheckSource(LexmisC4CheckSourceEntity lexmisC4CheckSourceEntity);
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,67 @@
|
||||||
|
package com.hzya.frame.seeyon.lexmisC4.dao.impl;
|
||||||
|
|
||||||
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||||
|
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||||
|
import com.hzya.frame.seeyon.entity.NuoNuoCallbackEntity;
|
||||||
|
import com.hzya.frame.seeyon.lexmisC4.dao.ILexmisC4Dao;
|
||||||
|
import com.hzya.frame.seeyon.lexmisC4.entity.LexmisC4CheckEntity;
|
||||||
|
import com.hzya.frame.seeyon.lexmisC4.entity.LexmisC4CheckSourceEntity;
|
||||||
|
import com.hzya.frame.seeyon.lexmisC4.entity.LexmisC4DetailEntity;
|
||||||
|
import com.hzya.frame.seeyon.lexmisC4.entity.LexmisC4Entity;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
|
@Repository(value = "LexmisC4DaoImpl")
|
||||||
|
public class LexmisC4DaoImpl extends MybatisGenericDao<LexmisC4Entity, String> implements ILexmisC4Dao {
|
||||||
|
@DS("#entity.dataSourceCode")
|
||||||
|
@Override
|
||||||
|
public List<LexmisC4Entity> queryXmList(LexmisC4Entity entity) {
|
||||||
|
return (List<LexmisC4Entity>) super.selectList(getSqlIdPrifx()+"queryXmList",entity);
|
||||||
|
}
|
||||||
|
@DS("#entity.dataSourceCode")
|
||||||
|
@Override
|
||||||
|
public List<LexmisC4Entity> selectLexmisC4(LexmisC4Entity entity) {
|
||||||
|
return (List<LexmisC4Entity>) super.selectList(getSqlIdPrifx()+"selectLexmisC4",entity);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@DS("#entity.dataSourceCode")
|
||||||
|
@Override
|
||||||
|
public List<LexmisC4Entity> selectMaxList(LexmisC4Entity entity) {
|
||||||
|
return (List<LexmisC4Entity>) super.selectList(getSqlIdPrifx()+"selectMaxList",entity);
|
||||||
|
|
||||||
|
}
|
||||||
|
@DS("#entity.dataSourceCode")
|
||||||
|
@Override
|
||||||
|
public int insertLexmisC4(LexmisC4Entity entity) {
|
||||||
|
return super.insert(getSqlIdPrifx()+"insertLexmisC4",entity);
|
||||||
|
}
|
||||||
|
@DS("#entity.dataSourceCode")
|
||||||
|
@Override
|
||||||
|
public int insertLexmisC4Detail(LexmisC4DetailEntity entity) {
|
||||||
|
return super.insert(getSqlIdPrifx()+"insertLexmisC4Detail",entity);
|
||||||
|
}
|
||||||
|
@DS("#entity.dataSourceCode")
|
||||||
|
@Override
|
||||||
|
public int saveC4Check(LexmisC4CheckEntity entity) {
|
||||||
|
return super.insert(getSqlIdPrifx()+"saveC4Check",entity);
|
||||||
|
}
|
||||||
|
@DS("#entity.dataSourceCode")
|
||||||
|
@Override
|
||||||
|
public int insertCheckSource(LexmisC4CheckSourceEntity entity) {
|
||||||
|
return super.insert(getSqlIdPrifx()+"insertCheckSource",entity);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@DS("#entity.dataSourceCode")
|
||||||
|
@Override
|
||||||
|
public List<LexmisC4DetailEntity> selectMinList(LexmisC4DetailEntity entity) {
|
||||||
|
return (List<LexmisC4DetailEntity>) super.selectList(getSqlIdPrifx()+"selectMinList",entity);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,167 @@
|
||||||
|
package com.hzya.frame.seeyon.lexmisC4.entity;
|
||||||
|
|
||||||
|
import com.hzya.frame.web.entity.BaseEntity;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class LexmisC4CheckEntity extends BaseEntity {
|
||||||
|
|
||||||
|
private String id; // 自动增长
|
||||||
|
private String scNo; // 单据编号
|
||||||
|
private String scSheetNo; // 预算表编号
|
||||||
|
private Integer scSheetID; // 预算明细ID
|
||||||
|
private Integer scSheetNum; // 预算期别
|
||||||
|
private BigDecimal scMoney; // 预算金额,精度为2
|
||||||
|
private String scMaker; // 编制人
|
||||||
|
private String scMakerNm; // 编制人名称
|
||||||
|
private Date scCDate; // 编制日期
|
||||||
|
private Integer scCheck; // 是否审核:0=未审核 1=已审核(通过) 2=已审核(未通过)
|
||||||
|
private String scChecker; // 审核人
|
||||||
|
private String scCheckerNm; // 审核人名称
|
||||||
|
private Date scChkDate; // 审核日期
|
||||||
|
private Integer scState; // 单据状态:0=无效 1=有效
|
||||||
|
private Integer scSource; // 来源方式:0=手动 1=表单 2=动态预算
|
||||||
|
private String scOANO; // OA单据编号,关联协同单号
|
||||||
|
private String scRecordID; // 表单重复表行号ID
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setId(String id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getScNo() {
|
||||||
|
return scNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setScNo(String scNo) {
|
||||||
|
this.scNo = scNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getScSheetNo() {
|
||||||
|
return scSheetNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setScSheetNo(String scSheetNo) {
|
||||||
|
this.scSheetNo = scSheetNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getScSheetID() {
|
||||||
|
return scSheetID;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setScSheetID(Integer scSheetID) {
|
||||||
|
this.scSheetID = scSheetID;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getScSheetNum() {
|
||||||
|
return scSheetNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setScSheetNum(Integer scSheetNum) {
|
||||||
|
this.scSheetNum = scSheetNum;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getScMoney() {
|
||||||
|
return scMoney;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setScMoney(BigDecimal scMoney) {
|
||||||
|
this.scMoney = scMoney;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getScMaker() {
|
||||||
|
return scMaker;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setScMaker(String scMaker) {
|
||||||
|
this.scMaker = scMaker;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getScMakerNm() {
|
||||||
|
return scMakerNm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setScMakerNm(String scMakerNm) {
|
||||||
|
this.scMakerNm = scMakerNm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getScCDate() {
|
||||||
|
return scCDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setScCDate(Date scCDate) {
|
||||||
|
this.scCDate = scCDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getScCheck() {
|
||||||
|
return scCheck;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setScCheck(Integer scCheck) {
|
||||||
|
this.scCheck = scCheck;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getScChecker() {
|
||||||
|
return scChecker;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setScChecker(String scChecker) {
|
||||||
|
this.scChecker = scChecker;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getScCheckerNm() {
|
||||||
|
return scCheckerNm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setScCheckerNm(String scCheckerNm) {
|
||||||
|
this.scCheckerNm = scCheckerNm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getScChkDate() {
|
||||||
|
return scChkDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setScChkDate(Date scChkDate) {
|
||||||
|
this.scChkDate = scChkDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getScState() {
|
||||||
|
return scState;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setScState(Integer scState) {
|
||||||
|
this.scState = scState;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getScSource() {
|
||||||
|
return scSource;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setScSource(Integer scSource) {
|
||||||
|
this.scSource = scSource;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getScOANO() {
|
||||||
|
return scOANO;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setScOANO(String scOANO) {
|
||||||
|
this.scOANO = scOANO;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getScRecordID() {
|
||||||
|
return scRecordID;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setScRecordID(String scRecordID) {
|
||||||
|
this.scRecordID = scRecordID;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,397 @@
|
||||||
|
package com.hzya.frame.seeyon.lexmisC4.entity;
|
||||||
|
|
||||||
|
import com.hzya.frame.web.entity.BaseEntity;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
public class LexmisC4CheckSourceEntity extends BaseEntity {
|
||||||
|
|
||||||
|
private String sheetId; // 预算明细ID
|
||||||
|
private String sheetNo; // 预算表编号
|
||||||
|
private String check1; // 检查项1
|
||||||
|
private String check2; // 检查项2
|
||||||
|
private String check3; // 检查项3
|
||||||
|
private String check4; // 检查项4
|
||||||
|
private String check5; // 检查项5
|
||||||
|
private String check6; // 检查项6
|
||||||
|
private String check7; // 检查项7
|
||||||
|
private String check8; // 检查项8
|
||||||
|
private String check9; // 检查项9
|
||||||
|
private String check10; // 检查项10
|
||||||
|
private String check11; // 检查项11
|
||||||
|
private String check12; // 检查项12
|
||||||
|
private String source1; // 来源1
|
||||||
|
private String source2; // 来源2
|
||||||
|
private String source3; // 来源3
|
||||||
|
private String source4; // 来源4
|
||||||
|
private String source5; // 来源5
|
||||||
|
private String source6; // 来源6
|
||||||
|
private String source7; // 来源7
|
||||||
|
private String source8; // 来源8
|
||||||
|
private String source9; // 来源9
|
||||||
|
private String source10; // 来源10
|
||||||
|
private String source11; // 来源11
|
||||||
|
private String source12; // 来源12
|
||||||
|
private String trans1; // 转换1
|
||||||
|
private String trans2; // 转换2
|
||||||
|
private String trans3; // 转换3
|
||||||
|
private String trans4; // 转换4
|
||||||
|
private String trans5; // 转换5
|
||||||
|
private String trans6; // 转换6
|
||||||
|
private String trans7; // 转换7
|
||||||
|
private String trans8; // 转换8
|
||||||
|
private String trans9; // 转换9
|
||||||
|
private String trans10; // 转换10
|
||||||
|
private String trans11; // 转换11
|
||||||
|
private String trans12; // 转换12
|
||||||
|
|
||||||
|
public String getSheetId() {
|
||||||
|
return sheetId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSheetId(String sheetId) {
|
||||||
|
this.sheetId = sheetId;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSheetNo() {
|
||||||
|
return sheetNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSheetNo(String sheetNo) {
|
||||||
|
this.sheetNo = sheetNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCheck1() {
|
||||||
|
return check1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCheck1(String check1) {
|
||||||
|
this.check1 = check1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCheck2() {
|
||||||
|
return check2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCheck2(String check2) {
|
||||||
|
this.check2 = check2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCheck3() {
|
||||||
|
return check3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCheck3(String check3) {
|
||||||
|
this.check3 = check3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCheck4() {
|
||||||
|
return check4;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCheck4(String check4) {
|
||||||
|
this.check4 = check4;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCheck5() {
|
||||||
|
return check5;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCheck5(String check5) {
|
||||||
|
this.check5 = check5;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCheck6() {
|
||||||
|
return check6;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCheck6(String check6) {
|
||||||
|
this.check6 = check6;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCheck7() {
|
||||||
|
return check7;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCheck7(String check7) {
|
||||||
|
this.check7 = check7;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCheck8() {
|
||||||
|
return check8;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCheck8(String check8) {
|
||||||
|
this.check8 = check8;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCheck9() {
|
||||||
|
return check9;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCheck9(String check9) {
|
||||||
|
this.check9 = check9;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCheck10() {
|
||||||
|
return check10;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCheck10(String check10) {
|
||||||
|
this.check10 = check10;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCheck11() {
|
||||||
|
return check11;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCheck11(String check11) {
|
||||||
|
this.check11 = check11;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCheck12() {
|
||||||
|
return check12;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCheck12(String check12) {
|
||||||
|
this.check12 = check12;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSource1() {
|
||||||
|
return source1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSource1(String source1) {
|
||||||
|
this.source1 = source1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSource2() {
|
||||||
|
return source2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSource2(String source2) {
|
||||||
|
this.source2 = source2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSource3() {
|
||||||
|
return source3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSource3(String source3) {
|
||||||
|
this.source3 = source3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSource4() {
|
||||||
|
return source4;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSource4(String source4) {
|
||||||
|
this.source4 = source4;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSource5() {
|
||||||
|
return source5;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSource5(String source5) {
|
||||||
|
this.source5 = source5;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSource6() {
|
||||||
|
return source6;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSource6(String source6) {
|
||||||
|
this.source6 = source6;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSource7() {
|
||||||
|
return source7;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSource7(String source7) {
|
||||||
|
this.source7 = source7;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSource8() {
|
||||||
|
return source8;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSource8(String source8) {
|
||||||
|
this.source8 = source8;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSource9() {
|
||||||
|
return source9;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSource9(String source9) {
|
||||||
|
this.source9 = source9;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSource10() {
|
||||||
|
return source10;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSource10(String source10) {
|
||||||
|
this.source10 = source10;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSource11() {
|
||||||
|
return source11;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSource11(String source11) {
|
||||||
|
this.source11 = source11;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSource12() {
|
||||||
|
return source12;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSource12(String source12) {
|
||||||
|
this.source12 = source12;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTrans1() {
|
||||||
|
return trans1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTrans1(String trans1) {
|
||||||
|
this.trans1 = trans1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTrans2() {
|
||||||
|
return trans2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTrans2(String trans2) {
|
||||||
|
this.trans2 = trans2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTrans3() {
|
||||||
|
return trans3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTrans3(String trans3) {
|
||||||
|
this.trans3 = trans3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTrans4() {
|
||||||
|
return trans4;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTrans4(String trans4) {
|
||||||
|
this.trans4 = trans4;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTrans5() {
|
||||||
|
return trans5;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTrans5(String trans5) {
|
||||||
|
this.trans5 = trans5;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTrans6() {
|
||||||
|
return trans6;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTrans6(String trans6) {
|
||||||
|
this.trans6 = trans6;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTrans7() {
|
||||||
|
return trans7;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTrans7(String trans7) {
|
||||||
|
this.trans7 = trans7;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTrans8() {
|
||||||
|
return trans8;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTrans8(String trans8) {
|
||||||
|
this.trans8 = trans8;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTrans9() {
|
||||||
|
return trans9;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTrans9(String trans9) {
|
||||||
|
this.trans9 = trans9;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTrans10() {
|
||||||
|
return trans10;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTrans10(String trans10) {
|
||||||
|
this.trans10 = trans10;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTrans11() {
|
||||||
|
return trans11;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTrans11(String trans11) {
|
||||||
|
this.trans11 = trans11;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTrans12() {
|
||||||
|
return trans12;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTrans12(String trans12) {
|
||||||
|
this.trans12 = trans12;
|
||||||
|
}
|
||||||
|
|
||||||
|
public LexmisC4CheckSourceEntity() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public LexmisC4CheckSourceEntity(String sheetId, String sheetNo) {
|
||||||
|
this.sheetId = sheetId;
|
||||||
|
this.sheetNo = sheetNo;
|
||||||
|
this.check1 = "0";
|
||||||
|
this.check2 = "0";
|
||||||
|
this.check3 = "0";
|
||||||
|
this.check4 = "0";
|
||||||
|
this.check5 = "0";
|
||||||
|
this.check6 = "0";
|
||||||
|
this.check7 = "0";
|
||||||
|
this.check8 = "0";
|
||||||
|
this.check9 = "0";
|
||||||
|
this.check10 = "0";
|
||||||
|
this.check11 = "0";
|
||||||
|
this.check12 = "0";
|
||||||
|
this.source1 = "0";
|
||||||
|
this.source2 = "0";
|
||||||
|
this.source3 = "0";
|
||||||
|
this.source4 = "0";
|
||||||
|
this.source5 = "0";
|
||||||
|
this.source6 = "0";
|
||||||
|
this.source7 = "0";
|
||||||
|
this.source8 = "0";
|
||||||
|
this.source9 = "0";
|
||||||
|
this.source10 = "0";
|
||||||
|
this.source11 = "0";
|
||||||
|
this.source12 = "0";
|
||||||
|
this.trans1 = "0";
|
||||||
|
this.trans2 = "0";
|
||||||
|
this.trans3 = "0";
|
||||||
|
this.trans4 = "0";
|
||||||
|
this.trans5 = "0";
|
||||||
|
this.trans6 = "0";
|
||||||
|
this.trans7 = "0";
|
||||||
|
this.trans8 = "0";
|
||||||
|
this.trans9 = "0";
|
||||||
|
this.trans10 = "0";
|
||||||
|
this.trans11 = "0";
|
||||||
|
this.trans12 = "0";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,645 @@
|
||||||
|
package com.hzya.frame.seeyon.lexmisC4.entity;
|
||||||
|
|
||||||
|
import com.hzya.frame.web.entity.BaseEntity;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
public class LexmisC4DetailEntity extends BaseEntity {
|
||||||
|
|
||||||
|
private String id; // 自动递增
|
||||||
|
private Integer sdSort; // 排序号,查询最大值加一
|
||||||
|
private String sdSheetNo; // 预算表编号,关联主表 SM_NO
|
||||||
|
private String sdPlanNo; // 方案代号,同抬头存
|
||||||
|
private String sdPlanNm; // 方案名称,同抬头存
|
||||||
|
private String sdMaker; // 编制人
|
||||||
|
private String sdMakerNm; // 编制人名称
|
||||||
|
private Date sdCDate; // 编制日期
|
||||||
|
private Integer sdCheck; // 是否审核,0 = 未审核 1 = 已审核
|
||||||
|
private String sdChecker; // 审核人
|
||||||
|
private String sdCheckerNm; // 审核人名称
|
||||||
|
private Date sdChkDate; // 审核日期
|
||||||
|
private String sdChargeNo; // 费用编号
|
||||||
|
private String sdChargeNm; // 费用名称
|
||||||
|
private BigDecimal sdMoney1; // 第 1 期金额,初次预算金额
|
||||||
|
private BigDecimal sdMoney2; // 第 2 期金额
|
||||||
|
private BigDecimal sdMoney3; // 第 3 期金额
|
||||||
|
private BigDecimal sdMoney4; // 第 4 期金额
|
||||||
|
private BigDecimal sdMoney5; // 第 5 期金额
|
||||||
|
private BigDecimal sdMoney6; // 第 6 期金额
|
||||||
|
private BigDecimal sdMoney7; // 第 7 期金额
|
||||||
|
private BigDecimal sdMoney8; // 第 8 期金额
|
||||||
|
private BigDecimal sdMoney9; // 第 9 期金额
|
||||||
|
private BigDecimal sdMoney10; // 第 10 期金额
|
||||||
|
private BigDecimal sdMoney11; // 第 11 期金额
|
||||||
|
private BigDecimal sdMoney12; // 第 12 期金额
|
||||||
|
private BigDecimal sdAdjust1; // 第 1 期调整金额,预算调整单回写累加
|
||||||
|
private BigDecimal sdAdjust2; // 第 2 期调整金额
|
||||||
|
private BigDecimal sdAdjust3; // 第 3 期调整金额
|
||||||
|
private BigDecimal sdAdjust4; // 第 4 期调整金额
|
||||||
|
private BigDecimal sdAdjust5; // 第 5 期调整金额
|
||||||
|
private BigDecimal sdAdjust6; // 第 6 期调整金额
|
||||||
|
private BigDecimal sdAdjust7; // 第 7 期调整金额
|
||||||
|
private BigDecimal sdAdjust8; // 第 8 期调整金额
|
||||||
|
private BigDecimal sdAdjust9; // 第 9 期调整金额
|
||||||
|
private BigDecimal sdAdjust10; // 第 10 期调整金额
|
||||||
|
private BigDecimal sdAdjust11; // 第 11 期调整金额
|
||||||
|
private BigDecimal sdAdjust12; // 第 12 期调整金额
|
||||||
|
private BigDecimal sdApply1; // 第 1 期申请金额,费用申请单回写累加
|
||||||
|
private BigDecimal sdApply2; // 第 2 期申请金额
|
||||||
|
private BigDecimal sdApply3; // 第 3 期申请金额
|
||||||
|
private BigDecimal sdApply4; // 第 4 期申请金额
|
||||||
|
private BigDecimal sdApply5; // 第 5 期申请金额
|
||||||
|
private BigDecimal sdApply6; // 第 6 期申请金额
|
||||||
|
private BigDecimal sdApply7; // 第 7 期申请金额
|
||||||
|
private BigDecimal sdApply8; // 第 8 期申请金额
|
||||||
|
private BigDecimal sdApply9; // 第 9 期申请金额
|
||||||
|
private BigDecimal sdApply10; // 第 10 期申请金额
|
||||||
|
private BigDecimal sdApply11; // 第 11 期申请金额
|
||||||
|
private BigDecimal sdApply12; // 第 12 期申请金额
|
||||||
|
private BigDecimal sdCover1; // 第 1 期报销金额,费用报销单回写累加
|
||||||
|
private BigDecimal sdCover2; // 第 2 期报销金额
|
||||||
|
private BigDecimal sdCover3; // 第 3 期报销金额
|
||||||
|
private BigDecimal sdCover4; // 第 4 期报销金额
|
||||||
|
private BigDecimal sdCover5; // 第 5 期报销金额
|
||||||
|
private BigDecimal sdCover6; // 第 6 期报销金额
|
||||||
|
private BigDecimal sdCover7; // 第 7 期报销金额
|
||||||
|
private BigDecimal sdCover8; // 第 8 期报销金额
|
||||||
|
private BigDecimal sdCover9; // 第 9 期报销金额
|
||||||
|
private BigDecimal sdCover10; // 第 10 期报销金额
|
||||||
|
private BigDecimal sdCover11; // 第 11 期报销金额
|
||||||
|
private BigDecimal sdCover12; // 第 12 期报销金额
|
||||||
|
private String sdCtrlItemNo; // 强控上级口径编号,口径类型参照方案明细的强控上级口径类型
|
||||||
|
private String sdCtrlItemNm; // 强控上级口径名称,同上
|
||||||
|
private Integer sdShareBudget; // 预算共用,1勾选0取消
|
||||||
|
private String sd999; // 部门
|
||||||
|
private String sd999Nm; // 部门
|
||||||
|
private Integer sdCtrlMode; // 当期控制强度,0不控制1弱控制2强控制
|
||||||
|
private Integer sdCtrlModeYear; // 超年控制强度,0不控制1弱控制2强控制
|
||||||
|
private Integer sdRefreshCtrl; // 是否需要升级强度标识
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public Integer getSdSort() {
|
||||||
|
return sdSort;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdSort(Integer sdSort) {
|
||||||
|
this.sdSort = sdSort;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSdSheetNo() {
|
||||||
|
return sdSheetNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdSheetNo(String sdSheetNo) {
|
||||||
|
this.sdSheetNo = sdSheetNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSdPlanNo() {
|
||||||
|
return sdPlanNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdPlanNo(String sdPlanNo) {
|
||||||
|
this.sdPlanNo = sdPlanNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSdPlanNm() {
|
||||||
|
return sdPlanNm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdPlanNm(String sdPlanNm) {
|
||||||
|
this.sdPlanNm = sdPlanNm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSdMaker() {
|
||||||
|
return sdMaker;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdMaker(String sdMaker) {
|
||||||
|
this.sdMaker = sdMaker;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSdMakerNm() {
|
||||||
|
return sdMakerNm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdMakerNm(String sdMakerNm) {
|
||||||
|
this.sdMakerNm = sdMakerNm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getSdCDate() {
|
||||||
|
return sdCDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdCDate(Date sdCDate) {
|
||||||
|
this.sdCDate = sdCDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getSdCheck() {
|
||||||
|
return sdCheck;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdCheck(Integer sdCheck) {
|
||||||
|
this.sdCheck = sdCheck;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSdChecker() {
|
||||||
|
return sdChecker;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdChecker(String sdChecker) {
|
||||||
|
this.sdChecker = sdChecker;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSdCheckerNm() {
|
||||||
|
return sdCheckerNm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdCheckerNm(String sdCheckerNm) {
|
||||||
|
this.sdCheckerNm = sdCheckerNm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getSdChkDate() {
|
||||||
|
return sdChkDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdChkDate(Date sdChkDate) {
|
||||||
|
this.sdChkDate = sdChkDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSdChargeNo() {
|
||||||
|
return sdChargeNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdChargeNo(String sdChargeNo) {
|
||||||
|
this.sdChargeNo = sdChargeNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSdChargeNm() {
|
||||||
|
return sdChargeNm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdChargeNm(String sdChargeNm) {
|
||||||
|
this.sdChargeNm = sdChargeNm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdMoney1() {
|
||||||
|
return sdMoney1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdMoney1(BigDecimal sdMoney1) {
|
||||||
|
this.sdMoney1 = sdMoney1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdMoney2() {
|
||||||
|
return sdMoney2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdMoney2(BigDecimal sdMoney2) {
|
||||||
|
this.sdMoney2 = sdMoney2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdMoney3() {
|
||||||
|
return sdMoney3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdMoney3(BigDecimal sdMoney3) {
|
||||||
|
this.sdMoney3 = sdMoney3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdMoney4() {
|
||||||
|
return sdMoney4;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdMoney4(BigDecimal sdMoney4) {
|
||||||
|
this.sdMoney4 = sdMoney4;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdMoney5() {
|
||||||
|
return sdMoney5;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdMoney5(BigDecimal sdMoney5) {
|
||||||
|
this.sdMoney5 = sdMoney5;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdMoney6() {
|
||||||
|
return sdMoney6;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdMoney6(BigDecimal sdMoney6) {
|
||||||
|
this.sdMoney6 = sdMoney6;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdMoney7() {
|
||||||
|
return sdMoney7;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdMoney7(BigDecimal sdMoney7) {
|
||||||
|
this.sdMoney7 = sdMoney7;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdMoney8() {
|
||||||
|
return sdMoney8;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdMoney8(BigDecimal sdMoney8) {
|
||||||
|
this.sdMoney8 = sdMoney8;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdMoney9() {
|
||||||
|
return sdMoney9;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdMoney9(BigDecimal sdMoney9) {
|
||||||
|
this.sdMoney9 = sdMoney9;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdMoney10() {
|
||||||
|
return sdMoney10;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdMoney10(BigDecimal sdMoney10) {
|
||||||
|
this.sdMoney10 = sdMoney10;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdMoney11() {
|
||||||
|
return sdMoney11;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdMoney11(BigDecimal sdMoney11) {
|
||||||
|
this.sdMoney11 = sdMoney11;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdMoney12() {
|
||||||
|
return sdMoney12;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdMoney12(BigDecimal sdMoney12) {
|
||||||
|
this.sdMoney12 = sdMoney12;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdAdjust1() {
|
||||||
|
return sdAdjust1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdAdjust1(BigDecimal sdAdjust1) {
|
||||||
|
this.sdAdjust1 = sdAdjust1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdAdjust2() {
|
||||||
|
return sdAdjust2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdAdjust2(BigDecimal sdAdjust2) {
|
||||||
|
this.sdAdjust2 = sdAdjust2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdAdjust3() {
|
||||||
|
return sdAdjust3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdAdjust3(BigDecimal sdAdjust3) {
|
||||||
|
this.sdAdjust3 = sdAdjust3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdAdjust4() {
|
||||||
|
return sdAdjust4;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdAdjust4(BigDecimal sdAdjust4) {
|
||||||
|
this.sdAdjust4 = sdAdjust4;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdAdjust5() {
|
||||||
|
return sdAdjust5;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdAdjust5(BigDecimal sdAdjust5) {
|
||||||
|
this.sdAdjust5 = sdAdjust5;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdAdjust6() {
|
||||||
|
return sdAdjust6;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdAdjust6(BigDecimal sdAdjust6) {
|
||||||
|
this.sdAdjust6 = sdAdjust6;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdAdjust7() {
|
||||||
|
return sdAdjust7;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdAdjust7(BigDecimal sdAdjust7) {
|
||||||
|
this.sdAdjust7 = sdAdjust7;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdAdjust8() {
|
||||||
|
return sdAdjust8;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdAdjust8(BigDecimal sdAdjust8) {
|
||||||
|
this.sdAdjust8 = sdAdjust8;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdAdjust9() {
|
||||||
|
return sdAdjust9;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdAdjust9(BigDecimal sdAdjust9) {
|
||||||
|
this.sdAdjust9 = sdAdjust9;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdAdjust10() {
|
||||||
|
return sdAdjust10;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdAdjust10(BigDecimal sdAdjust10) {
|
||||||
|
this.sdAdjust10 = sdAdjust10;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdAdjust11() {
|
||||||
|
return sdAdjust11;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdAdjust11(BigDecimal sdAdjust11) {
|
||||||
|
this.sdAdjust11 = sdAdjust11;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdAdjust12() {
|
||||||
|
return sdAdjust12;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdAdjust12(BigDecimal sdAdjust12) {
|
||||||
|
this.sdAdjust12 = sdAdjust12;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdApply1() {
|
||||||
|
return sdApply1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdApply1(BigDecimal sdApply1) {
|
||||||
|
this.sdApply1 = sdApply1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdApply2() {
|
||||||
|
return sdApply2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdApply2(BigDecimal sdApply2) {
|
||||||
|
this.sdApply2 = sdApply2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdApply3() {
|
||||||
|
return sdApply3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdApply3(BigDecimal sdApply3) {
|
||||||
|
this.sdApply3 = sdApply3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdApply4() {
|
||||||
|
return sdApply4;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdApply4(BigDecimal sdApply4) {
|
||||||
|
this.sdApply4 = sdApply4;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdApply5() {
|
||||||
|
return sdApply5;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdApply5(BigDecimal sdApply5) {
|
||||||
|
this.sdApply5 = sdApply5;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdApply6() {
|
||||||
|
return sdApply6;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdApply6(BigDecimal sdApply6) {
|
||||||
|
this.sdApply6 = sdApply6;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdApply7() {
|
||||||
|
return sdApply7;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdApply7(BigDecimal sdApply7) {
|
||||||
|
this.sdApply7 = sdApply7;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdApply8() {
|
||||||
|
return sdApply8;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdApply8(BigDecimal sdApply8) {
|
||||||
|
this.sdApply8 = sdApply8;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdApply9() {
|
||||||
|
return sdApply9;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdApply9(BigDecimal sdApply9) {
|
||||||
|
this.sdApply9 = sdApply9;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdApply10() {
|
||||||
|
return sdApply10;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdApply10(BigDecimal sdApply10) {
|
||||||
|
this.sdApply10 = sdApply10;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdApply11() {
|
||||||
|
return sdApply11;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdApply11(BigDecimal sdApply11) {
|
||||||
|
this.sdApply11 = sdApply11;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdApply12() {
|
||||||
|
return sdApply12;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdApply12(BigDecimal sdApply12) {
|
||||||
|
this.sdApply12 = sdApply12;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdCover1() {
|
||||||
|
return sdCover1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdCover1(BigDecimal sdCover1) {
|
||||||
|
this.sdCover1 = sdCover1;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdCover2() {
|
||||||
|
return sdCover2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdCover2(BigDecimal sdCover2) {
|
||||||
|
this.sdCover2 = sdCover2;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdCover3() {
|
||||||
|
return sdCover3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdCover3(BigDecimal sdCover3) {
|
||||||
|
this.sdCover3 = sdCover3;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdCover4() {
|
||||||
|
return sdCover4;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdCover4(BigDecimal sdCover4) {
|
||||||
|
this.sdCover4 = sdCover4;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdCover5() {
|
||||||
|
return sdCover5;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdCover5(BigDecimal sdCover5) {
|
||||||
|
this.sdCover5 = sdCover5;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdCover6() {
|
||||||
|
return sdCover6;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdCover6(BigDecimal sdCover6) {
|
||||||
|
this.sdCover6 = sdCover6;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdCover7() {
|
||||||
|
return sdCover7;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdCover7(BigDecimal sdCover7) {
|
||||||
|
this.sdCover7 = sdCover7;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdCover8() {
|
||||||
|
return sdCover8;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdCover8(BigDecimal sdCover8) {
|
||||||
|
this.sdCover8 = sdCover8;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdCover9() {
|
||||||
|
return sdCover9;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdCover9(BigDecimal sdCover9) {
|
||||||
|
this.sdCover9 = sdCover9;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdCover10() {
|
||||||
|
return sdCover10;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdCover10(BigDecimal sdCover10) {
|
||||||
|
this.sdCover10 = sdCover10;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdCover11() {
|
||||||
|
return sdCover11;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdCover11(BigDecimal sdCover11) {
|
||||||
|
this.sdCover11 = sdCover11;
|
||||||
|
}
|
||||||
|
|
||||||
|
public BigDecimal getSdCover12() {
|
||||||
|
return sdCover12;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdCover12(BigDecimal sdCover12) {
|
||||||
|
this.sdCover12 = sdCover12;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSdCtrlItemNo() {
|
||||||
|
return sdCtrlItemNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdCtrlItemNo(String sdCtrlItemNo) {
|
||||||
|
this.sdCtrlItemNo = sdCtrlItemNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSdCtrlItemNm() {
|
||||||
|
return sdCtrlItemNm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdCtrlItemNm(String sdCtrlItemNm) {
|
||||||
|
this.sdCtrlItemNm = sdCtrlItemNm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getSdShareBudget() {
|
||||||
|
return sdShareBudget;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdShareBudget(Integer sdShareBudget) {
|
||||||
|
this.sdShareBudget = sdShareBudget;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSd999() {
|
||||||
|
return sd999;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSd999(String sd999) {
|
||||||
|
this.sd999 = sd999;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSd999Nm() {
|
||||||
|
return sd999Nm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSd999Nm(String sd999Nm) {
|
||||||
|
this.sd999Nm = sd999Nm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getSdCtrlMode() {
|
||||||
|
return sdCtrlMode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdCtrlMode(Integer sdCtrlMode) {
|
||||||
|
this.sdCtrlMode = sdCtrlMode;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getSdCtrlModeYear() {
|
||||||
|
return sdCtrlModeYear;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdCtrlModeYear(Integer sdCtrlModeYear) {
|
||||||
|
this.sdCtrlModeYear = sdCtrlModeYear;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getSdRefreshCtrl() {
|
||||||
|
return sdRefreshCtrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSdRefreshCtrl(Integer sdRefreshCtrl) {
|
||||||
|
this.sdRefreshCtrl = sdRefreshCtrl;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setId(String id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,264 @@
|
||||||
|
package com.hzya.frame.seeyon.lexmisC4.entity;
|
||||||
|
|
||||||
|
import com.hzya.frame.web.entity.BaseEntity;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class LexmisC4Entity extends BaseEntity {
|
||||||
|
|
||||||
|
private String id; // 自动增长
|
||||||
|
private String smNo; // 预算表编号,唯一自动编码程序内部用
|
||||||
|
private String smBudgetOrg; // 预算单位代号
|
||||||
|
private String smBudgetOrgNm; // 预算单位名称
|
||||||
|
private String smAccount; // 帐套编号,搭配C2时用
|
||||||
|
private String smAccountNm; // 帐套名称,搭配C2时用
|
||||||
|
private Integer smClose; // 预算表关闭, 0 = 未关闭 1 = 已关闭
|
||||||
|
private Integer smYear; // 预算年度
|
||||||
|
private String smCaseno; // 项目编号
|
||||||
|
private String smCasenm; // 项目名称
|
||||||
|
private String smPlanNo; // 方案代号
|
||||||
|
private String smPlanNm; // 方案名称
|
||||||
|
private String smRem; // 备注
|
||||||
|
private String smMaker; // 编制人
|
||||||
|
private String smMakerNm; // 编制人名称
|
||||||
|
private Date smCDate; // 编制日期
|
||||||
|
private Integer smCheck; // 是否审核,0=未审核 1=全部审核 2=部份审核
|
||||||
|
private String smChecker; // 审核人
|
||||||
|
private String smCheckerNm; // 审核人名称
|
||||||
|
private Date smChkDate; // 审核日期
|
||||||
|
private String smOAno; // OA单据编号,(预留)关联协同编号
|
||||||
|
private Integer smMonth; // 起始月份
|
||||||
|
private Integer smEYear; // 截止年度
|
||||||
|
private Integer smEMonth; // 截止月份
|
||||||
|
private String smBeginYM; // 起始年月
|
||||||
|
private String smEndYM; // 截止年月
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author lvleigang
|
||||||
|
* @Description 明细
|
||||||
|
* @Date 2:23 下午 2025/7/8
|
||||||
|
* @param null
|
||||||
|
* @return
|
||||||
|
**/
|
||||||
|
private List<LexmisC4DetailEntity> detailEntityList;
|
||||||
|
|
||||||
|
public List<LexmisC4DetailEntity> getDetailEntityList() {
|
||||||
|
return detailEntityList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDetailEntityList(List<LexmisC4DetailEntity> detailEntityList) {
|
||||||
|
this.detailEntityList = detailEntityList;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setId(String id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSmNo() {
|
||||||
|
return smNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSmNo(String smNo) {
|
||||||
|
this.smNo = smNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSmBudgetOrg() {
|
||||||
|
return smBudgetOrg;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSmBudgetOrg(String smBudgetOrg) {
|
||||||
|
this.smBudgetOrg = smBudgetOrg;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSmBudgetOrgNm() {
|
||||||
|
return smBudgetOrgNm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSmBudgetOrgNm(String smBudgetOrgNm) {
|
||||||
|
this.smBudgetOrgNm = smBudgetOrgNm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSmAccount() {
|
||||||
|
return smAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSmAccount(String smAccount) {
|
||||||
|
this.smAccount = smAccount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSmAccountNm() {
|
||||||
|
return smAccountNm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSmAccountNm(String smAccountNm) {
|
||||||
|
this.smAccountNm = smAccountNm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getSmClose() {
|
||||||
|
return smClose;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSmClose(Integer smClose) {
|
||||||
|
this.smClose = smClose;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getSmYear() {
|
||||||
|
return smYear;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSmYear(Integer smYear) {
|
||||||
|
this.smYear = smYear;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSmCaseno() {
|
||||||
|
return smCaseno;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSmCaseno(String smCaseno) {
|
||||||
|
this.smCaseno = smCaseno;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSmCasenm() {
|
||||||
|
return smCasenm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSmCasenm(String smCasenm) {
|
||||||
|
this.smCasenm = smCasenm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSmPlanNo() {
|
||||||
|
return smPlanNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSmPlanNo(String smPlanNo) {
|
||||||
|
this.smPlanNo = smPlanNo;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSmPlanNm() {
|
||||||
|
return smPlanNm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSmPlanNm(String smPlanNm) {
|
||||||
|
this.smPlanNm = smPlanNm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSmRem() {
|
||||||
|
return smRem;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSmRem(String smRem) {
|
||||||
|
this.smRem = smRem;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSmMaker() {
|
||||||
|
return smMaker;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSmMaker(String smMaker) {
|
||||||
|
this.smMaker = smMaker;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSmMakerNm() {
|
||||||
|
return smMakerNm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSmMakerNm(String smMakerNm) {
|
||||||
|
this.smMakerNm = smMakerNm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getSmCDate() {
|
||||||
|
return smCDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSmCDate(Date smCDate) {
|
||||||
|
this.smCDate = smCDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getSmCheck() {
|
||||||
|
return smCheck;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSmCheck(Integer smCheck) {
|
||||||
|
this.smCheck = smCheck;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSmChecker() {
|
||||||
|
return smChecker;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSmChecker(String smChecker) {
|
||||||
|
this.smChecker = smChecker;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSmCheckerNm() {
|
||||||
|
return smCheckerNm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSmCheckerNm(String smCheckerNm) {
|
||||||
|
this.smCheckerNm = smCheckerNm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Date getSmChkDate() {
|
||||||
|
return smChkDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSmChkDate(Date smChkDate) {
|
||||||
|
this.smChkDate = smChkDate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSmOAno() {
|
||||||
|
return smOAno;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSmOAno(String smOAno) {
|
||||||
|
this.smOAno = smOAno;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getSmMonth() {
|
||||||
|
return smMonth;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSmMonth(Integer smMonth) {
|
||||||
|
this.smMonth = smMonth;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getSmEYear() {
|
||||||
|
return smEYear;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSmEYear(Integer smEYear) {
|
||||||
|
this.smEYear = smEYear;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getSmEMonth() {
|
||||||
|
return smEMonth;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSmEMonth(Integer smEMonth) {
|
||||||
|
this.smEMonth = smEMonth;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSmBeginYM() {
|
||||||
|
return smBeginYM;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSmBeginYM(String smBeginYM) {
|
||||||
|
this.smBeginYM = smBeginYM;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getSmEndYM() {
|
||||||
|
return smEndYM;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setSmEndYM(String smEndYM) {
|
||||||
|
this.smEndYM = smEndYM;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,910 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.hzya.frame.seeyon.lexmisC4.dao.impl.LexmisC4DaoImpl">
|
||||||
|
|
||||||
|
<resultMap id="LexmisC4Map" type="com.hzya.frame.seeyon.lexmisC4.entity.LexmisC4Entity">
|
||||||
|
<id property="id" column="ID" />
|
||||||
|
<result property="smNo" column="SM_NO" />
|
||||||
|
<result property="smBudgetOrg" column="SM_BUDGET_ORG" />
|
||||||
|
<result property="smBudgetOrgNm" column="SM_BUDGET_ORG_NM" />
|
||||||
|
<result property="smAccount" column="SM_ACCOUNT" />
|
||||||
|
<result property="smAccountNm" column="SM_ACCOUNT_NM" />
|
||||||
|
<result property="smClose" column="SM_CLOSE" />
|
||||||
|
<result property="smYear" column="SM_YEAR" />
|
||||||
|
<result property="smCaseno" column="SM_CASENO" />
|
||||||
|
<result property="smCasenm" column="SM_CASENM" />
|
||||||
|
<result property="smPlanNo" column="SM_PLAN_NO" />
|
||||||
|
<result property="smPlanNm" column="SM_PLAN_NM" />
|
||||||
|
<result property="smRem" column="SM_REM" />
|
||||||
|
<result property="smMaker" column="SM_MAKER" />
|
||||||
|
<result property="smMakerNm" column="SM_MAKER_NM" />
|
||||||
|
<result property="smCDate" column="SM_C_DATE" />
|
||||||
|
<result property="smCheck" column="SM_CHECK" />
|
||||||
|
<result property="smChecker" column="SM_CHECKER" />
|
||||||
|
<result property="smCheckerNm" column="SM_CHECKER_NM" />
|
||||||
|
<result property="smChkDate" column="SM_CHK_DATE" />
|
||||||
|
<result property="smOAno" column="SM_OA_NO" />
|
||||||
|
<result property="smMonth" column="SM_MONTH" />
|
||||||
|
<result property="smEYear" column="SM_E_YEAR" />
|
||||||
|
<result property="smEMonth" column="SM_E_MONTH" />
|
||||||
|
<result property="smBeginYM" column="SM_BEGIN_YM" />
|
||||||
|
<result property="smEndYM" column="SM_END_YM" />
|
||||||
|
</resultMap>
|
||||||
|
<!-- 根据条件查询预算主表记录 -->
|
||||||
|
<select id="selectLexmisC4" parameterType="com.hzya.frame.seeyon.lexmisC4.entity.LexmisC4Entity" resultMap="LexmisC4Map">
|
||||||
|
SELECT
|
||||||
|
ID, SM_NO, SM_BUDGET_ORG, SM_BUDGET_ORG_NM, SM_ACCOUNT, SM_ACCOUNT_NM,
|
||||||
|
SM_CLOSE, SM_YEAR, SM_CASENO, SM_CASENM, SM_PLAN_NO, SM_PLAN_NM,
|
||||||
|
SM_REM, SM_MAKER, SM_MAKER_NM, SM_C_DATE, SM_CHECK, SM_CHECKER,
|
||||||
|
SM_CHECKER_NM, SM_CHK_DATE, SM_OA_NO, SM_MONTH, SM_E_YEAR, SM_E_MONTH,
|
||||||
|
SM_BEGIN_YM, SM_END_YM
|
||||||
|
FROM LexmisC4_BudgetSheet_Main
|
||||||
|
WHERE 1=1
|
||||||
|
<if test="id != null">
|
||||||
|
AND ID = #{id}
|
||||||
|
</if>
|
||||||
|
<if test="smNo != null and smNo != ''">
|
||||||
|
AND SM_NO = #{smNo}
|
||||||
|
</if>
|
||||||
|
<if test="smBudgetOrg != null and smBudgetOrg != ''">
|
||||||
|
AND SM_BUDGET_ORG = #{smBudgetOrg}
|
||||||
|
</if>
|
||||||
|
<if test="smBudgetOrgNm != null and smBudgetOrgNm != ''">
|
||||||
|
AND SM_BUDGET_ORG_NM = #{smBudgetOrgNm}
|
||||||
|
</if>
|
||||||
|
<if test="smAccount != null and smAccount != ''">
|
||||||
|
AND SM_ACCOUNT = #{smAccount}
|
||||||
|
</if>
|
||||||
|
<if test="smAccountNm != null and smAccountNm != ''">
|
||||||
|
AND SM_ACCOUNT_NM = #{smAccountNm}
|
||||||
|
</if>
|
||||||
|
<if test="smClose != null">
|
||||||
|
AND SM_CLOSE = #{smClose}
|
||||||
|
</if>
|
||||||
|
<if test="smYear != null">
|
||||||
|
AND SM_YEAR = #{smYear}
|
||||||
|
</if>
|
||||||
|
<if test="smCaseno != null and smCaseno != ''">
|
||||||
|
AND SM_CASENO = #{smCaseno}
|
||||||
|
</if>
|
||||||
|
<if test="smCasenm != null and smCasenm != ''">
|
||||||
|
AND SM_CASENM = #{smCasenm}
|
||||||
|
</if>
|
||||||
|
<if test="smPlanNo != null and smPlanNo != ''">
|
||||||
|
AND SM_PLAN_NO = #{smPlanNo}
|
||||||
|
</if>
|
||||||
|
<if test="smPlanNm != null and smPlanNm != ''">
|
||||||
|
AND SM_PLAN_NM = #{smPlanNm}
|
||||||
|
</if>
|
||||||
|
<if test="smRem != null and smRem != ''">
|
||||||
|
AND SM_REM = #{smRem}
|
||||||
|
</if>
|
||||||
|
<if test="smMaker != null and smMaker != ''">
|
||||||
|
AND SM_MAKER = #{smMaker}
|
||||||
|
</if>
|
||||||
|
<if test="smMakerNm != null and smMakerNm != ''">
|
||||||
|
AND SM_MAKER_NM = #{smMakerNm}
|
||||||
|
</if>
|
||||||
|
<if test="smCDate != null">
|
||||||
|
AND SM_C_DATE = #{smCDate}
|
||||||
|
</if>
|
||||||
|
<if test="smCheck != null">
|
||||||
|
AND SM_CHECK = #{smCheck}
|
||||||
|
</if>
|
||||||
|
<if test="smChecker != null and smChecker != ''">
|
||||||
|
AND SM_CHECKER = #{smChecker}
|
||||||
|
</if>
|
||||||
|
<if test="smCheckerNm != null and smCheckerNm != ''">
|
||||||
|
AND SM_CHECKER_NM = #{smCheckerNm}
|
||||||
|
</if>
|
||||||
|
<if test="smChkDate != null">
|
||||||
|
AND SM_CHK_DATE = #{smChkDate}
|
||||||
|
</if>
|
||||||
|
<if test="smOAno != null and smOAno != ''">
|
||||||
|
AND SM_OA_NO = #{smOAno}
|
||||||
|
</if>
|
||||||
|
<if test="smMonth != null">
|
||||||
|
AND SM_MONTH = #{smMonth}
|
||||||
|
</if>
|
||||||
|
<if test="smEYear != null">
|
||||||
|
AND SM_E_YEAR = #{smEYear}
|
||||||
|
</if>
|
||||||
|
<if test="smEMonth != null">
|
||||||
|
AND SM_E_MONTH = #{smEMonth}
|
||||||
|
</if>
|
||||||
|
<if test="smBeginYM != null and smBeginYM != ''">
|
||||||
|
AND SM_BEGIN_YM = #{smBeginYM}
|
||||||
|
</if>
|
||||||
|
<if test="smEndYM != null and smEndYM != ''">
|
||||||
|
AND SM_END_YM = #{smEndYM}
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<!-- 插入预算主表记录(非空字段才插入) -->
|
||||||
|
<insert id="insertLexmisC4" parameterType="com.hzya.frame.seeyon.lexmisC4.entity.LexmisC4Entity">
|
||||||
|
INSERT INTO LexmisC4_BudgetSheet_Main
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">ID,</if>
|
||||||
|
<if test="smNo != null and smNo != ''">SM_NO,</if>
|
||||||
|
<if test="smBudgetOrg != null and smBudgetOrg != ''">SM_BUDGET_ORG,</if>
|
||||||
|
<if test="smBudgetOrgNm != null and smBudgetOrgNm != ''">SM_BUDGET_ORG_NM,</if>
|
||||||
|
<if test="smAccount != null and smAccount != ''">SM_ACCOUNT,</if>
|
||||||
|
<if test="smAccountNm != null and smAccountNm != ''">SM_ACCOUNT_NM,</if>
|
||||||
|
<if test="smClose != null">SM_CLOSE,</if>
|
||||||
|
<if test="smYear != null">SM_YEAR,</if>
|
||||||
|
<if test="smCaseno != null and smCaseno != ''">SM_CASENO,</if>
|
||||||
|
<if test="smCasenm != null and smCasenm != ''">SM_CASENM,</if>
|
||||||
|
<if test="smPlanNo != null and smPlanNo != ''">SM_PLAN_NO,</if>
|
||||||
|
<if test="smPlanNm != null and smPlanNm != ''">SM_PLAN_NM,</if>
|
||||||
|
<if test="smRem != null and smRem != ''">SM_REM,</if>
|
||||||
|
<if test="smMaker != null and smMaker != ''">SM_MAKER,</if>
|
||||||
|
<if test="smMakerNm != null and smMakerNm != ''">SM_MAKER_NM,</if>
|
||||||
|
<if test="smCDate != null">SM_C_DATE,</if>
|
||||||
|
<if test="smCheck != null">SM_CHECK,</if>
|
||||||
|
<if test="smChecker != null and smChecker != ''">SM_CHECKER,</if>
|
||||||
|
<if test="smCheckerNm != null and smCheckerNm != ''">SM_CHECKER_NM,</if>
|
||||||
|
<if test="smChkDate != null">SM_CHK_DATE,</if>
|
||||||
|
<if test="smOAno != null and smOAno != ''">SM_OA_NO,</if>
|
||||||
|
<if test="smMonth != null">SM_MONTH,</if>
|
||||||
|
<if test="smEYear != null">SM_E_YEAR,</if>
|
||||||
|
<if test="smEMonth != null">SM_E_MONTH,</if>
|
||||||
|
<if test="smBeginYM != null and smBeginYM != ''">SM_BEGIN_YM,</if>
|
||||||
|
<if test="smEndYM != null and smEndYM != ''">SM_END_YM,</if>
|
||||||
|
</trim>
|
||||||
|
VALUES
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">#{id},</if>
|
||||||
|
<if test="smNo != null and smNo != ''">#{smNo},</if>
|
||||||
|
<if test="smBudgetOrg != null and smBudgetOrg != ''">#{smBudgetOrg},</if>
|
||||||
|
<if test="smBudgetOrgNm != null and smBudgetOrgNm != ''">#{smBudgetOrgNm},</if>
|
||||||
|
<if test="smAccount != null and smAccount != ''">#{smAccount},</if>
|
||||||
|
<if test="smAccountNm != null and smAccountNm != ''">#{smAccountNm},</if>
|
||||||
|
<if test="smClose != null">#{smClose},</if>
|
||||||
|
<if test="smYear != null">#{smYear},</if>
|
||||||
|
<if test="smCaseno != null and smCaseno != ''">#{smCaseno},</if>
|
||||||
|
<if test="smCasenm != null and smCasenm != ''">#{smCasenm},</if>
|
||||||
|
<if test="smPlanNo != null and smPlanNo != ''">#{smPlanNo},</if>
|
||||||
|
<if test="smPlanNm != null and smPlanNm != ''">#{smPlanNm},</if>
|
||||||
|
<if test="smRem != null and smRem != ''">#{smRem},</if>
|
||||||
|
<if test="smMaker != null and smMaker != ''">#{smMaker},</if>
|
||||||
|
<if test="smMakerNm != null and smMakerNm != ''">#{smMakerNm},</if>
|
||||||
|
<if test="smCDate != null">#{smCDate},</if>
|
||||||
|
<if test="smCheck != null">#{smCheck},</if>
|
||||||
|
<if test="smChecker != null and smChecker != ''">#{smChecker},</if>
|
||||||
|
<if test="smCheckerNm != null and smCheckerNm != ''">#{smCheckerNm},</if>
|
||||||
|
<if test="smChkDate != null">#{smChkDate},</if>
|
||||||
|
<if test="smOAno != null and smOAno != ''">#{smOAno},</if>
|
||||||
|
<if test="smMonth != null">#{smMonth},</if>
|
||||||
|
<if test="smEYear != null">#{smEYear},</if>
|
||||||
|
<if test="smEMonth != null">#{smEMonth},</if>
|
||||||
|
<if test="smBeginYM != null and smBeginYM != ''">#{smBeginYM},</if>
|
||||||
|
<if test="smEndYM != null and smEndYM != ''">#{smEndYM},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<!-- 更新预算主表记录(非空字段才更新) -->
|
||||||
|
<update id="updateLexmisC4" parameterType="com.hzya.frame.seeyon.lexmisC4.entity.LexmisC4Entity">
|
||||||
|
UPDATE LexmisC4_BudgetSheet_Main
|
||||||
|
<set>
|
||||||
|
<if test="smNo != null and smNo != ''">SM_NO = #{smNo},</if>
|
||||||
|
<if test="smBudgetOrg != null and smBudgetOrg != ''">SM_BUDGET_ORG = #{smBudgetOrg},</if>
|
||||||
|
<if test="smBudgetOrgNm != null and smBudgetOrgNm != ''">SM_BUDGET_ORG_NM = #{smBudgetOrgNm},</if>
|
||||||
|
<if test="smAccount != null and smAccount != ''">SM_ACCOUNT = #{smAccount},</if>
|
||||||
|
<if test="smAccountNm != null and smAccountNm != ''">SM_ACCOUNT_NM = #{smAccountNm},</if>
|
||||||
|
<if test="smClose != null">SM_CLOSE = #{smClose},</if>
|
||||||
|
<if test="smYear != null">SM_YEAR = #{smYear},</if>
|
||||||
|
<if test="smCaseno != null and smCaseno != ''">SM_CASENO = #{smCaseno},</if>
|
||||||
|
<if test="smCasenm != null and smCasenm != ''">SM_CASENM = #{smCasenm},</if>
|
||||||
|
<if test="smPlanNo != null and smPlanNo != ''">SM_PLAN_NO = #{smPlanNo},</if>
|
||||||
|
<if test="smPlanNm != null and smPlanNm != ''">SM_PLAN_NM = #{smPlanNm},</if>
|
||||||
|
<if test="smRem != null and smRem != ''">SM_REM = #{smRem},</if>
|
||||||
|
<if test="smMaker != null and smMaker != ''">SM_MAKER = #{smMaker},</if>
|
||||||
|
<if test="smMakerNm != null and smMakerNm != ''">SM_MAKER_NM = #{smMakerNm},</if>
|
||||||
|
<if test="smCDate != null">SM_C_DATE = #{smCDate},</if>
|
||||||
|
<if test="smCheck != null">SM_CHECK = #{smCheck},</if>
|
||||||
|
<if test="smChecker != null and smChecker != ''">SM_CHECKER = #{smChecker},</if>
|
||||||
|
<if test="smCheckerNm != null and smCheckerNm != ''">SM_CHECKER_NM = #{smCheckerNm},</if>
|
||||||
|
<if test="smChkDate != null">SM_CHK_DATE = #{smChkDate},</if>
|
||||||
|
<if test="smOAno != null and smOAno != ''">SM_OA_NO = #{smOAno},</if>
|
||||||
|
<if test="smMonth != null">SM_MONTH = #{smMonth},</if>
|
||||||
|
<if test="smEYear != null">SM_E_YEAR = #{smEYear},</if>
|
||||||
|
<if test="smEMonth != null">SM_E_MONTH = #{smEMonth},</if>
|
||||||
|
<if test="smBeginYM != null and smBeginYM != ''">SM_BEGIN_YM = #{smBeginYM},</if>
|
||||||
|
<if test="smEndYM != null and smEndYM != ''">SM_END_YM = #{smEndYM},</if>
|
||||||
|
</set>
|
||||||
|
WHERE ID = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<!-- 根据ID删除预算主表记录 -->
|
||||||
|
<delete id="deleteLexmisC4" parameterType="com.hzya.frame.seeyon.lexmisC4.entity.LexmisC4Entity">
|
||||||
|
DELETE FROM LexmisC4_BudgetSheet_Main WHERE ID = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<resultMap id="LexmisC4DetailMap" type="com.hzya.frame.seeyon.lexmisC4.entity.LexmisC4DetailEntity">
|
||||||
|
<!-- 主键字段 -->
|
||||||
|
<id property="id" column="ID" />
|
||||||
|
<!-- 基础信息字段 -->
|
||||||
|
<result property="sdSort" column="SD_SORT" />
|
||||||
|
<result property="sdSheetNo" column="SD_SHEET_NO" />
|
||||||
|
<result property="sdPlanNo" column="SD_PLAN_NO" />
|
||||||
|
<result property="sdPlanNm" column="SD_PLAN_NM" />
|
||||||
|
<result property="sdMaker" column="SD_MAKER" />
|
||||||
|
<result property="sdMakerNm" column="SD_MAKER_NM" />
|
||||||
|
<result property="sdCDate" column="SD_C_DATE" />
|
||||||
|
<result property="sdCheck" column="SD_CHECK" />
|
||||||
|
<result property="sdChecker" column="SD_CHECKER" />
|
||||||
|
<result property="sdCheckerNm" column="SD_CHECKER_NM" />
|
||||||
|
<result property="sdChkDate" column="SD_CHK_DATE" />
|
||||||
|
<result property="sdChargeNo" column="SD_CHARGE_NO" />
|
||||||
|
<result property="sdChargeNm" column="SD_CHARGE_NM" />
|
||||||
|
|
||||||
|
<!-- 第1-12期金额字段 -->
|
||||||
|
<result property="sdMoney1" column="SD_MONEY1" />
|
||||||
|
<result property="sdMoney2" column="SD_MONEY2" />
|
||||||
|
<result property="sdMoney3" column="SD_MONEY3" />
|
||||||
|
<result property="sdMoney4" column="SD_MONEY4" />
|
||||||
|
<result property="sdMoney5" column="SD_MONEY5" />
|
||||||
|
<result property="sdMoney6" column="SD_MONEY6" />
|
||||||
|
<result property="sdMoney7" column="SD_MONEY7" />
|
||||||
|
<result property="sdMoney8" column="SD_MONEY8" />
|
||||||
|
<result property="sdMoney9" column="SD_MONEY9" />
|
||||||
|
<result property="sdMoney10" column="SD_MONEY10" />
|
||||||
|
<result property="sdMoney11" column="SD_MONEY11" />
|
||||||
|
<result property="sdMoney12" column="SD_MONEY12" />
|
||||||
|
|
||||||
|
<!-- 第1-12期调整金额字段 -->
|
||||||
|
<result property="sdAdjust1" column="SD_ADJUST1" />
|
||||||
|
<result property="sdAdjust2" column="SD_ADJUST2" />
|
||||||
|
<result property="sdAdjust3" column="SD_ADJUST3" />
|
||||||
|
<result property="sdAdjust4" column="SD_ADJUST4" />
|
||||||
|
<result property="sdAdjust5" column="SD_ADJUST5" />
|
||||||
|
<result property="sdAdjust6" column="SD_ADJUST6" />
|
||||||
|
<result property="sdAdjust7" column="SD_ADJUST7" />
|
||||||
|
<result property="sdAdjust8" column="SD_ADJUST8" />
|
||||||
|
<result property="sdAdjust9" column="SD_ADJUST9" />
|
||||||
|
<result property="sdAdjust10" column="SD_ADJUST10" />
|
||||||
|
<result property="sdAdjust11" column="SD_ADJUST11" />
|
||||||
|
<result property="sdAdjust12" column="SD_ADJUST12" />
|
||||||
|
|
||||||
|
<!-- 第1-12期申请金额字段 -->
|
||||||
|
<result property="sdApply1" column="SD_APPLY1" />
|
||||||
|
<result property="sdApply2" column="SD_APPLY2" />
|
||||||
|
<result property="sdApply3" column="SD_APPLY3" />
|
||||||
|
<result property="sdApply4" column="SD_APPLY4" />
|
||||||
|
<result property="sdApply5" column="SD_APPLY5" />
|
||||||
|
<result property="sdApply6" column="SD_APPLY6" />
|
||||||
|
<result property="sdApply7" column="SD_APPLY7" />
|
||||||
|
<result property="sdApply8" column="SD_APPLY8" />
|
||||||
|
<result property="sdApply9" column="SD_APPLY9" />
|
||||||
|
<result property="sdApply10" column="SD_APPLY10" />
|
||||||
|
<result property="sdApply11" column="SD_APPLY11" />
|
||||||
|
<result property="sdApply12" column="SD_APPLY12" />
|
||||||
|
|
||||||
|
<!-- 第1-12期报销金额字段 -->
|
||||||
|
<result property="sdCover1" column="SD_COVER1" />
|
||||||
|
<result property="sdCover2" column="SD_COVER2" />
|
||||||
|
<result property="sdCover3" column="SD_COVER3" />
|
||||||
|
<result property="sdCover4" column="SD_COVER4" />
|
||||||
|
<result property="sdCover5" column="SD_COVER5" />
|
||||||
|
<result property="sdCover6" column="SD_COVER6" />
|
||||||
|
<result property="sdCover7" column="SD_COVER7" />
|
||||||
|
<result property="sdCover8" column="SD_COVER8" />
|
||||||
|
<result property="sdCover9" column="SD_COVER9" />
|
||||||
|
<result property="sdCover10" column="SD_COVER10" />
|
||||||
|
<result property="sdCover11" column="SD_COVER11" />
|
||||||
|
<result property="sdCover12" column="SD_COVER12" />
|
||||||
|
|
||||||
|
<!-- 控制相关字段 -->
|
||||||
|
<result property="sdCtrlItemNo" column="SD_CTRL_ITEM_NO" />
|
||||||
|
<result property="sdCtrlItemNm" column="SD_CTRL_ITEM_NM" />
|
||||||
|
<result property="sdShareBudget" column="SD_SHARE_BUDGET" />
|
||||||
|
<result property="sd999" column="SD_999" />
|
||||||
|
<result property="sd999Nm" column="SD_999_NM" />
|
||||||
|
<result property="sdCtrlMode" column="SD_CTRL_MODE" /> <!-- 当期控制强度 -->
|
||||||
|
<result property="sdCtrlModeYear" column="SD_CTRL_MODE_YEAR" /> <!-- 超年控制强度(原字段名重复处理) -->
|
||||||
|
<result property="sdRefreshCtrl" column="SD_REFRESH_CTRL" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<!-- 查询预算明细表记录 -->
|
||||||
|
<select id="selectLexmisC4Detail" parameterType="com.hzya.frame.seeyon.lexmisC4.entity.LexmisC4DetailEntity" resultMap="LexmisC4DetailMap">
|
||||||
|
SELECT * FROM LexmisC4_BudgetSheet_Detail
|
||||||
|
WHERE 1=1
|
||||||
|
<if test="id != null">
|
||||||
|
AND ID = #{id}
|
||||||
|
</if>
|
||||||
|
<if test="sdSort != null">
|
||||||
|
AND SD_SORT = #{sdSort}
|
||||||
|
</if>
|
||||||
|
<if test="sdSheetNo != null and sdSheetNo != ''">
|
||||||
|
AND SD_SHEET_NO = #{sdSheetNo}
|
||||||
|
</if>
|
||||||
|
<if test="sdPlanNo != null and sdPlanNo != ''">
|
||||||
|
AND SD_PLAN_NO = #{sdPlanNo}
|
||||||
|
</if>
|
||||||
|
<if test="sdPlanNm != null and sdPlanNm != ''">
|
||||||
|
AND SD_PLAN_NM = #{sdPlanNm}
|
||||||
|
</if>
|
||||||
|
<if test="sdMaker != null and sdMaker != ''">
|
||||||
|
AND SD_MAKER = #{sdMaker}
|
||||||
|
</if>
|
||||||
|
|
||||||
|
<if test="sdMakerNm != null and sdMakerNm != ''">
|
||||||
|
AND SD_MAKER_NM = #{sdMakerNm}
|
||||||
|
</if>
|
||||||
|
<if test="sdCDate != null">
|
||||||
|
AND SD_C_DATE = #{sdCDate}
|
||||||
|
</if>
|
||||||
|
<if test="sdCheck != null">
|
||||||
|
AND SD_CHECK = #{sdCheck}
|
||||||
|
</if>
|
||||||
|
<if test="sdChecker != null and sdChecker != ''">
|
||||||
|
AND SD_CHECKER = #{sdChecker}
|
||||||
|
</if>
|
||||||
|
<if test="sdCheckerNm != null and sdCheckerNm != ''">
|
||||||
|
AND SD_CHECKER_NM = #{sdCheckerNm}
|
||||||
|
</if>
|
||||||
|
<if test="sdChkDate != null">
|
||||||
|
AND SD_CHK_DATE = #{sdChkDate}
|
||||||
|
</if>
|
||||||
|
<if test="sdChargeNo != null and sdChargeNo != ''">
|
||||||
|
AND SD_CHARGE_NO = #{sdChargeNo}
|
||||||
|
</if>
|
||||||
|
<if test="sdChargeNm != null and sdChargeNm != ''">
|
||||||
|
AND SD_CHARGE_NM = #{sdChargeNm}
|
||||||
|
</if>
|
||||||
|
<if test="sdMoney1 != null">
|
||||||
|
AND SD_MONEY1 = #{sdMoney1}
|
||||||
|
</if>
|
||||||
|
<if test="sdMoney2 != null">
|
||||||
|
AND SD_MONEY2 = #{sdMoney2}
|
||||||
|
</if>
|
||||||
|
<if test="sdMoney3 != null">
|
||||||
|
AND SD_MONEY3 = #{sdMoney3}
|
||||||
|
</if>
|
||||||
|
<if test="sdMoney4 != null">
|
||||||
|
AND SD_MONEY4 = #{sdMoney4}
|
||||||
|
</if>
|
||||||
|
<if test="sdMoney5 != null">
|
||||||
|
AND SD_MONEY5 = #{sdMoney5}
|
||||||
|
</if>
|
||||||
|
<if test="sdMoney6 != null">
|
||||||
|
AND SD_MONEY6 = #{sdMoney6}
|
||||||
|
</if>
|
||||||
|
<if test="sdMoney7 != null">
|
||||||
|
AND SD_MONEY7 = #{sdMoney7}
|
||||||
|
</if>
|
||||||
|
<if test="sdMoney8 != null">
|
||||||
|
AND SD_MONEY8 = #{sdMoney8}
|
||||||
|
</if>
|
||||||
|
<if test="sdMoney9 != null">
|
||||||
|
AND SD_MONEY9 = #{sdMoney9}
|
||||||
|
</if>
|
||||||
|
<if test="sdMoney10 != null">
|
||||||
|
AND SD_MONEY10 = #{sdMoney10}
|
||||||
|
</if>
|
||||||
|
<if test="sdMoney11 != null">
|
||||||
|
AND SD_MONEY11 = #{sdMoney11}
|
||||||
|
</if>
|
||||||
|
<if test="sdMoney12 != null">
|
||||||
|
AND SD_MONEY12 = #{sdMoney12}
|
||||||
|
</if>
|
||||||
|
<if test="sdAdjust1 != null">
|
||||||
|
AND SD_ADJUST1 = #{sdAdjust1}
|
||||||
|
</if>
|
||||||
|
<if test="sdAdjust2 != null">
|
||||||
|
AND SD_ADJUST2 = #{sdAdjust2}
|
||||||
|
</if>
|
||||||
|
<if test="sdAdjust3 != null">
|
||||||
|
AND SD_ADJUST3 = #{sdAdjust3}
|
||||||
|
</if>
|
||||||
|
<if test="sdAdjust4 != null">
|
||||||
|
AND SD_ADJUST4 = #{sdAdjust4}
|
||||||
|
</if>
|
||||||
|
<if test="sdAdjust5 != null">
|
||||||
|
AND SD_ADJUST5 = #{sdAdjust5}
|
||||||
|
</if>
|
||||||
|
<if test="sdAdjust6 != null">
|
||||||
|
AND SD_ADJUST6 = #{sdAdjust6}
|
||||||
|
</if>
|
||||||
|
<if test="sdAdjust7 != null">
|
||||||
|
AND SD_ADJUST7 = #{sdAdjust7}
|
||||||
|
</if>
|
||||||
|
<if test="sdAdjust8 != null">
|
||||||
|
AND SD_ADJUST8 = #{sdAdjust8}
|
||||||
|
</if>
|
||||||
|
<if test="sdAdjust9 != null">
|
||||||
|
AND SD_ADJUST9 = #{sdAdjust9}
|
||||||
|
</if>
|
||||||
|
<if test="sdAdjust10 != null">
|
||||||
|
AND SD_ADJUST10 = #{sdAdjust10}
|
||||||
|
</if>
|
||||||
|
<if test="sdAdjust11 != null">
|
||||||
|
AND SD_ADJUST11 = #{sdAdjust11}
|
||||||
|
</if>
|
||||||
|
<if test="sdAdjust12 != null">
|
||||||
|
AND SD_ADJUST12 = #{sdAdjust12}
|
||||||
|
</if>
|
||||||
|
<if test="sdApply1 != null">
|
||||||
|
AND SD_APPLY1 = #{sdApply1}
|
||||||
|
</if>
|
||||||
|
<if test="sdApply2 != null">
|
||||||
|
AND SD_APPLY2 = #{sdApply2}
|
||||||
|
</if>
|
||||||
|
<if test="sdApply3 != null">
|
||||||
|
AND SD_APPLY3 = #{sdApply3}
|
||||||
|
</if>
|
||||||
|
<if test="sdApply4 != null">
|
||||||
|
AND SD_APPLY4 = #{sdApply4}
|
||||||
|
</if>
|
||||||
|
<if test="sdApply5 != null">
|
||||||
|
AND SD_APPLY5 = #{sdApply5}
|
||||||
|
</if>
|
||||||
|
<if test="sdApply6 != null">
|
||||||
|
AND SD_APPLY6 = #{sdApply6}
|
||||||
|
</if>
|
||||||
|
<if test="sdApply7 != null">
|
||||||
|
AND SD_APPLY7 = #{sdApply7}
|
||||||
|
</if>
|
||||||
|
<if test="sdApply8 != null">
|
||||||
|
AND SD_APPLY8 = #{sdApply8}
|
||||||
|
</if>
|
||||||
|
<if test="sdApply9 != null">
|
||||||
|
AND SD_APPLY9 = #{sdApply9}
|
||||||
|
</if>
|
||||||
|
<if test="sdApply10 != null">
|
||||||
|
AND SD_APPLY10 = #{sdApply10}
|
||||||
|
</if>
|
||||||
|
<if test="sdApply11 != null">
|
||||||
|
AND SD_APPLY11 = #{sdApply11}
|
||||||
|
</if>
|
||||||
|
<if test="sdApply12 != null">
|
||||||
|
AND SD_APPLY12 = #{sdApply12}
|
||||||
|
</if>
|
||||||
|
<if test="sdCover1 != null">
|
||||||
|
AND SD_COVER1 = #{sdCover1}
|
||||||
|
</if>
|
||||||
|
<if test="sdCover2 != null">
|
||||||
|
AND SD_COVER2 = #{sdCover2}
|
||||||
|
</if>
|
||||||
|
<if test="sdCover3 != null">
|
||||||
|
AND SD_COVER3 = #{sdCover3}
|
||||||
|
</if>
|
||||||
|
<if test="sdCover4 != null">
|
||||||
|
AND SD_COVER4 = #{sdCover4}
|
||||||
|
</if>
|
||||||
|
<if test="sdCover5 != null">
|
||||||
|
AND SD_COVER5 = #{sdCover5}
|
||||||
|
</if>
|
||||||
|
<if test="sdCover6 != null">
|
||||||
|
AND SD_COVER6 = #{sdCover6}
|
||||||
|
</if>
|
||||||
|
<if test="sdCover7 != null">
|
||||||
|
AND SD_COVER7 = #{sdCover7}
|
||||||
|
</if>
|
||||||
|
<if test="sdCover8 != null">
|
||||||
|
AND SD_COVER8 = #{sdCover8}
|
||||||
|
</if>
|
||||||
|
<if test="sdCover9 != null">
|
||||||
|
AND SD_COVER9 = #{sdCover9}
|
||||||
|
</if>
|
||||||
|
<if test="sdCover10 != null">
|
||||||
|
AND SD_COVER10 = #{sdCover10}
|
||||||
|
</if>
|
||||||
|
<if test="sdCover11 != null">
|
||||||
|
AND SD_COVER11 = #{sdCover11}
|
||||||
|
</if>
|
||||||
|
<if test="sdCover12 != null">
|
||||||
|
AND SD_COVER12 = #{sdCover12}
|
||||||
|
</if>
|
||||||
|
<if test="sdCtrlItemNo != null and sdCtrlItemNo != ''">
|
||||||
|
AND SD_CTRL_ITEM_NO = #{sdCtrlItemNo}
|
||||||
|
</if>
|
||||||
|
<if test="sdCtrlItemNm != null and sdCtrlItemNm != ''">
|
||||||
|
AND SD_CTRL_ITEM_NM = #{sdCtrlItemNm}
|
||||||
|
</if>
|
||||||
|
<if test="sdShareBudget != null">
|
||||||
|
AND SD_SHARE_BUDGET = #{sdShareBudget}
|
||||||
|
</if>
|
||||||
|
<if test="sd999 != null and sd999 != ''">
|
||||||
|
AND SD_999 = #{sd999}
|
||||||
|
</if>
|
||||||
|
<if test="sd999Nm != null and sd999Nm != ''">
|
||||||
|
AND SD_999_NM = #{sd999Nm}
|
||||||
|
</if>
|
||||||
|
<if test="sdCtrlMode != null">
|
||||||
|
AND SD_CTRL_MODE = #{sdCtrlMode}
|
||||||
|
</if>
|
||||||
|
<if test="sdCtrlModeYear != null">
|
||||||
|
AND SD_CTRL_MODE_YEAR = #{sdCtrlModeYear}
|
||||||
|
</if>
|
||||||
|
<if test="sdRefreshCtrl != null">
|
||||||
|
AND SD_REFRESH_CTRL = #{sdRefreshCtrl}
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
|
<!-- 插入预算明细表记录 -->
|
||||||
|
<insert id="insertLexmisC4Detail" parameterType="com.hzya.frame.seeyon.lexmisC4.entity.LexmisC4DetailEntity" useGeneratedKeys="true" keyProperty="id">
|
||||||
|
INSERT INTO LexmisC4_BudgetSheet_Detail
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="sdSort != null">SD_SORT,</if>
|
||||||
|
<if test="sdSheetNo != null and sdSheetNo != ''">SD_SHEET_NO,</if>
|
||||||
|
<if test="sdPlanNo != null and sdPlanNo != ''">SD_PLAN_NO,</if>
|
||||||
|
<if test="sdPlanNm != null and sdPlanNm != ''">SD_PLAN_NM,</if>
|
||||||
|
<if test="sdMaker != null and sdMaker != ''">SD_MAKER,</if>
|
||||||
|
<if test="sdMakerNm != null and sdMakerNm != ''">SD_MAKER_NM,</if>
|
||||||
|
<if test="sdCDate != null">SD_C_DATE,</if>
|
||||||
|
<if test="sdCheck != null">SD_CHECK,</if>
|
||||||
|
<if test="sdChecker != null and sdChecker != ''">SD_CHECKER,</if>
|
||||||
|
<if test="sdCheckerNm != null and sdCheckerNm != ''">SD_CHECKER_NM,</if>
|
||||||
|
<if test="sdChkDate != null">SD_CHK_DATE,</if>
|
||||||
|
<if test="sdChargeNo != null and sdChargeNo != ''">SD_CHARGE_NO,</if>
|
||||||
|
<if test="sdChargeNm != null and sdChargeNm != ''">SD_CHARGE_NM,</if>
|
||||||
|
<if test="sdMoney1 != null">SD_MONEY1,</if>
|
||||||
|
<if test="sdMoney2 != null">SD_MONEY2,</if>
|
||||||
|
<if test="sdMoney3 != null">SD_MONEY3,</if>
|
||||||
|
<if test="sdMoney4 != null">SD_MONEY4,</if>
|
||||||
|
<if test="sdMoney5 != null">SD_MONEY5,</if>
|
||||||
|
<if test="sdMoney6 != null">SD_MONEY6,</if>
|
||||||
|
<if test="sdMoney7 != null">SD_MONEY7,</if>
|
||||||
|
<if test="sdMoney8 != null">SD_MONEY8,</if>
|
||||||
|
<if test="sdMoney9 != null">SD_MONEY9,</if>
|
||||||
|
<if test="sdMoney10 != null">SD_MONEY10,</if>
|
||||||
|
<if test="sdMoney11 != null">SD_MONEY11,</if>
|
||||||
|
<if test="sdMoney12 != null">SD_MONEY12,</if>
|
||||||
|
<if test="sdAdjust1 != null">SD_ADJUST1,</if>
|
||||||
|
<if test="sdAdjust2 != null">SD_ADJUST2,</if>
|
||||||
|
<if test="sdAdjust3 != null">SD_ADJUST3,</if>
|
||||||
|
<if test="sdAdjust4 != null">SD_ADJUST4,</if>
|
||||||
|
<if test="sdAdjust5 != null">SD_ADJUST5,</if>
|
||||||
|
<if test="sdAdjust6 != null">SD_ADJUST6,</if>
|
||||||
|
<if test="sdAdjust7 != null">SD_ADJUST7,</if>
|
||||||
|
<if test="sdAdjust8 != null">SD_ADJUST8,</if>
|
||||||
|
<if test="sdAdjust9 != null">SD_ADJUST9,</if>
|
||||||
|
<if test="sdAdjust10 != null">SD_ADJUST10,</if>
|
||||||
|
<if test="sdAdjust11 != null">SD_ADJUST11,</if>
|
||||||
|
<if test="sdAdjust12 != null">SD_ADJUST12,</if>
|
||||||
|
<if test="sdApply1 != null">SD_APPLY1,</if>
|
||||||
|
<if test="sdApply2 != null">SD_APPLY2,</if>
|
||||||
|
<if test="sdApply3 != null">SD_APPLY3,</if>
|
||||||
|
<if test="sdApply4 != null">SD_APPLY4,</if>
|
||||||
|
<if test="sdApply5 != null">SD_APPLY5,</if>
|
||||||
|
<if test="sdApply6 != null">SD_APPLY6,</if>
|
||||||
|
<if test="sdApply7 != null">SD_APPLY7,</if>
|
||||||
|
<if test="sdApply8 != null">SD_APPLY8,</if>
|
||||||
|
<if test="sdApply9 != null">SD_APPLY9,</if>
|
||||||
|
<if test="sdApply10 != null">SD_APPLY10,</if>
|
||||||
|
<if test="sdApply11 != null">SD_APPLY11,</if>
|
||||||
|
<if test="sdApply12 != null">SD_APPLY12,</if>
|
||||||
|
<if test="sdCover1 != null">SD_COVER1,</if>
|
||||||
|
<if test="sdCover2 != null">SD_COVER2,</if>
|
||||||
|
<if test="sdCover3 != null">SD_COVER3,</if>
|
||||||
|
<if test="sdCover4 != null">SD_COVER4,</if>
|
||||||
|
<if test="sdCover5 != null">SD_COVER5,</if>
|
||||||
|
<if test="sdCover6 != null">SD_COVER6,</if>
|
||||||
|
<if test="sdCover7 != null">SD_COVER7,</if>
|
||||||
|
<if test="sdCover8 != null">SD_COVER8,</if>
|
||||||
|
<if test="sdCover9 != null">SD_COVER9,</if>
|
||||||
|
<if test="sdCover10 != null">SD_COVER10,</if>
|
||||||
|
<if test="sdCover11 != null">SD_COVER11,</if>
|
||||||
|
<if test="sdCover12 != null">SD_COVER12,</if>
|
||||||
|
<if test="sdCtrlItemNo != null and sdCtrlItemNo != ''">SD_CTRL_ITEM_NO,</if>
|
||||||
|
<if test="sdCtrlItemNm != null and sdCtrlItemNm != ''">SD_CTRL_ITEM_NM,</if>
|
||||||
|
<if test="sdShareBudget != null">SD_SHARE_BUDGET,</if>
|
||||||
|
<if test="sd999 != null and sd999 != ''">SD_999,</if>
|
||||||
|
<if test="sd999Nm != null and sd999Nm != ''">SD_999_NM,</if>
|
||||||
|
<if test="sdCtrlMode != null">SD_CTRL_MODE,</if>
|
||||||
|
<if test="sdCtrlModeYear != null">SD_CTRL_MODE_YEAR,</if>
|
||||||
|
<if test="sdRefreshCtrl != null">SD_REFRESH_CTRL,</if>
|
||||||
|
</trim>
|
||||||
|
VALUES
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="sdSort != null">#{sdSort},</if>
|
||||||
|
<if test="sdSheetNo != null and sdSheetNo != ''">#{sdSheetNo},</if>
|
||||||
|
<if test="sdPlanNo != null and sdPlanNo != ''">#{sdPlanNo},</if>
|
||||||
|
<if test="sdPlanNm != null and sdPlanNm != ''">#{sdPlanNm},</if>
|
||||||
|
<if test="sdMaker != null and sdMaker != ''">#{sdMaker},</if>
|
||||||
|
<if test="sdMakerNm != null and sdMakerNm != ''">#{sdMakerNm},</if>
|
||||||
|
<if test="sdCDate != null">#{sdCDate},</if>
|
||||||
|
<if test="sdCheck != null">#{sdCheck},</if>
|
||||||
|
<if test="sdChecker != null and sdChecker != ''">#{sdChecker},</if>
|
||||||
|
<if test="sdCheckerNm != null and sdCheckerNm != ''">#{sdCheckerNm},</if>
|
||||||
|
<if test="sdChkDate != null">#{sdChkDate},</if>
|
||||||
|
<if test="sdChargeNo != null and sdChargeNo != ''">#{sdChargeNo},</if>
|
||||||
|
<if test="sdChargeNm != null and sdChargeNm != ''">#{sdChargeNm},</if>
|
||||||
|
<if test="sdMoney1 != null">#{sdMoney1},</if>
|
||||||
|
<if test="sdMoney2 != null">#{sdMoney2},</if>
|
||||||
|
<if test="sdMoney3 != null">#{sdMoney3},</if>
|
||||||
|
<if test="sdMoney4 != null">#{sdMoney4},</if>
|
||||||
|
<if test="sdMoney5 != null">#{sdMoney5},</if>
|
||||||
|
<if test="sdMoney6 != null">#{sdMoney6},</if>
|
||||||
|
<if test="sdMoney7 != null">#{sdMoney7},</if>
|
||||||
|
<if test="sdMoney8 != null">#{sdMoney8},</if>
|
||||||
|
<if test="sdMoney9 != null">#{sdMoney9},</if>
|
||||||
|
<if test="sdMoney10 != null">#{sdMoney10},</if>
|
||||||
|
<if test="sdMoney11 != null">#{sdMoney11},</if>
|
||||||
|
<if test="sdMoney12 != null">#{sdMoney12},</if>
|
||||||
|
<if test="sdAdjust1 != null">#{sdAdjust1},</if>
|
||||||
|
<if test="sdAdjust2 != null">#{sdAdjust2},</if>
|
||||||
|
<if test="sdAdjust3 != null">#{sdAdjust3},</if>
|
||||||
|
<if test="sdAdjust4 != null">#{sdAdjust4},</if>
|
||||||
|
<if test="sdAdjust5 != null">#{sdAdjust5},</if>
|
||||||
|
<if test="sdAdjust6 != null">#{sdAdjust6},</if>
|
||||||
|
<if test="sdAdjust7 != null">#{sdAdjust7},</if>
|
||||||
|
<if test="sdAdjust8 != null">#{sdAdjust8},</if>
|
||||||
|
<if test="sdAdjust9 != null">#{sdAdjust9},</if>
|
||||||
|
<if test="sdAdjust10 != null">#{sdAdjust10},</if>
|
||||||
|
<if test="sdAdjust11 != null">#{sdAdjust11},</if>
|
||||||
|
<if test="sdAdjust12 != null">#{sdAdjust12},</if>
|
||||||
|
<if test="sdApply1 != null">#{sdApply1},</if>
|
||||||
|
<if test="sdApply2 != null">#{sdApply2},</if>
|
||||||
|
<if test="sdApply3 != null">#{sdApply3},</if>
|
||||||
|
<if test="sdApply4 != null">#{sdApply4},</if>
|
||||||
|
<if test="sdApply5 != null">#{sdApply5},</if>
|
||||||
|
<if test="sdApply6 != null">#{sdApply6},</if>
|
||||||
|
<if test="sdApply7 != null">#{sdApply7},</if>
|
||||||
|
<if test="sdApply8 != null">#{sdApply8},</if>
|
||||||
|
<if test="sdApply9 != null">#{sdApply9},</if>
|
||||||
|
<if test="sdApply10 != null">#{sdApply10},</if>
|
||||||
|
<if test="sdApply11 != null">#{sdApply11},</if>
|
||||||
|
<if test="sdApply12 != null">#{sdApply12},</if>
|
||||||
|
<if test="sdCover1 != null">#{sdCover1},</if>
|
||||||
|
<if test="sdCover2 != null">#{sdCover2},</if>
|
||||||
|
<if test="sdCover3 != null">#{sdCover3},</if>
|
||||||
|
<if test="sdCover4 != null">#{sdCover4},</if>
|
||||||
|
<if test="sdCover5 != null">#{sdCover5},</if>
|
||||||
|
<if test="sdCover6 != null">#{sdCover6},</if>
|
||||||
|
<if test="sdCover7 != null">#{sdCover7},</if>
|
||||||
|
<if test="sdCover8 != null">#{sdCover8},</if>
|
||||||
|
<if test="sdCover9 != null">#{sdCover9},</if>
|
||||||
|
<if test="sdCover10 != null">#{sdCover10},</if>
|
||||||
|
<if test="sdCover11 != null">#{sdCover11},</if>
|
||||||
|
<if test="sdCover12 != null">#{sdCover12},</if>
|
||||||
|
<if test="sdCtrlItemNo != null and sdCtrlItemNo != ''">#{sdCtrlItemNo},</if>
|
||||||
|
<if test="sdCtrlItemNm != null and sdCtrlItemNm != ''">#{sdCtrlItemNm},</if>
|
||||||
|
<if test="sdShareBudget != null">#{sdShareBudget},</if>
|
||||||
|
<if test="sd999 != null and sd999 != ''">#{sd999},</if>
|
||||||
|
<if test="sd999Nm != null and sd999Nm != ''">#{sd999Nm},</if>
|
||||||
|
<if test="sdCtrlMode != null">#{sdCtrlMode},</if>
|
||||||
|
<if test="sdCtrlModeYear != null">#{sdCtrlModeYear},</if>
|
||||||
|
<if test="sdRefreshCtrl != null">#{sdRefreshCtrl},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
<!-- 更新预算明细表记录 -->
|
||||||
|
<update id="updateLexmisC4Detail" parameterType="com.hzya.frame.seeyon.lexmisC4.entity.LexmisC4DetailEntity">
|
||||||
|
UPDATE LexmisC4_BudgetSheet_Detail
|
||||||
|
<set>
|
||||||
|
<if test="sdSort != null">SD_SORT = #{sdSort},</if>
|
||||||
|
<if test="sdSheetNo != null and sdSheetNo != ''">SD_SHEET_NO = #{sdSheetNo},</if>
|
||||||
|
<if test="sdPlanNo != null and sdPlanNo != ''">SD_PLAN_NO = #{sdPlanNo},</if>
|
||||||
|
<if test="sdPlanNm != null and sdPlanNm != ''">SD_PLAN_NM = #{sdPlanNm},</if>
|
||||||
|
<if test="sdMaker != null and sdMaker != ''">SD_MAKER = #{sdMaker},</if>
|
||||||
|
<if test="sdMakerNm != null and sdMakerNm != ''">SD_MAKER_NM = #{sdMakerNm},</if>
|
||||||
|
<if test="sdCDate != null">SD_C_DATE = #{sdCDate},</if>
|
||||||
|
<if test="sdCheck != null">SD_CHECK = #{sdCheck},</if>
|
||||||
|
<if test="sdChecker != null and sdChecker != ''">SD_CHECKER = #{sdChecker},</if>
|
||||||
|
<if test="sdCheckerNm != null and sdCheckerNm != ''">SD_CHECKER_NM = #{sdCheckerNm},</if>
|
||||||
|
<if test="sdChkDate != null">SD_CHK_DATE = #{sdChkDate},</if>
|
||||||
|
<if test="sdChargeNo != null and sdChargeNo != ''">SD_CHARGE_NO = #{sdChargeNo},</if>
|
||||||
|
<if test="sdChargeNm != null and sdChargeNm != ''">SD_CHARGE_NM = #{sdChargeNm},</if>
|
||||||
|
<if test="sdMoney1 != null">SD_MONEY1 = #{sdMoney1},</if>
|
||||||
|
<if test="sdMoney2 != null">SD_MONEY2 = #{sdMoney2},</if>
|
||||||
|
<if test="sdMoney3 != null">SD_MONEY3 = #{sdMoney3},</if>
|
||||||
|
<if test="sdMoney4 != null">SD_MONEY4 = #{sdMoney4},</if>
|
||||||
|
<if test="sdMoney5 != null">SD_MONEY5 = #{sdMoney5},</if>
|
||||||
|
<if test="sdMoney6 != null">SD_MONEY6 = #{sdMoney6},</if>
|
||||||
|
<if test="sdMoney7 != null">SD_MONEY7 = #{sdMoney7},</if>
|
||||||
|
<if test="sdMoney8 != null">SD_MONEY8 = #{sdMoney8},</if>
|
||||||
|
<if test="sdMoney9 != null">SD_MONEY9 = #{sdMoney9},</if>
|
||||||
|
<if test="sdMoney10 != null">SD_MONEY10 = #{sdMoney10},</if>
|
||||||
|
<if test="sdMoney11 != null">SD_MONEY11 = #{sdMoney11},</if>
|
||||||
|
<if test="sdMoney12 != null">SD_MONEY12 = #{sdMoney12},</if>
|
||||||
|
<if test="sdAdjust1 != null">SD_ADJUST1 = #{sdAdjust1},</if>
|
||||||
|
<if test="sdAdjust2 != null">SD_ADJUST2 = #{sdAdjust2},</if>
|
||||||
|
<if test="sdAdjust3 != null">SD_ADJUST3 = #{sdAdjust3},</if>
|
||||||
|
<if test="sdAdjust4 != null">SD_ADJUST4 = #{sdAdjust4},</if>
|
||||||
|
<if test="sdAdjust5 != null">SD_ADJUST5 = #{sdAdjust5},</if>
|
||||||
|
<if test="sdAdjust6 != null">SD_ADJUST6 = #{sdAdjust6},</if>
|
||||||
|
<if test="sdAdjust7 != null">SD_ADJUST7 = #{sdAdjust7},</if>
|
||||||
|
<if test="sdAdjust8 != null">SD_ADJUST8 = #{sdAdjust8},</if>
|
||||||
|
<if test="sdAdjust9 != null">SD_ADJUST9 = #{sdAdjust9},</if>
|
||||||
|
<if test="sdAdjust10 != null">SD_ADJUST10 = #{sdAdjust10},</if>
|
||||||
|
<if test="sdAdjust11 != null">SD_ADJUST11 = #{sdAdjust11},</if>
|
||||||
|
<if test="sdAdjust12 != null">SD_ADJUST12 = #{sdAdjust12},</if>
|
||||||
|
<if test="sdApply1 != null">SD_APPLY1 = #{sdApply1},</if>
|
||||||
|
<if test="sdApply2 != null">SD_APPLY2 = #{sdApply2},</if>
|
||||||
|
<if test="sdApply3 != null">SD_APPLY3 = #{sdApply3},</if>
|
||||||
|
<if test="sdApply4 != null">SD_APPLY4 = #{sdApply4},</if>
|
||||||
|
<if test="sdApply5 != null">SD_APPLY5 = #{sdApply5},</if>
|
||||||
|
<if test="sdApply6 != null">SD_APPLY6 = #{sdApply6},</if>
|
||||||
|
<if test="sdApply7 != null">SD_APPLY7 = #{sdApply7},</if>
|
||||||
|
<if test="sdApply8 != null">SD_APPLY8 = #{sdApply8},</if>
|
||||||
|
<if test="sdApply9 != null">SD_APPLY9 = #{sdApply9},</if>
|
||||||
|
<if test="sdApply10 != null">SD_APPLY10 = #{sdApply10},</if>
|
||||||
|
<if test="sdApply11 != null">SD_APPLY11 = #{sdApply11},</if>
|
||||||
|
<if test="sdApply12 != null">SD_APPLY12 = #{sdApply12},</if>
|
||||||
|
<if test="sdCover1 != null">SD_COVER1 = #{sdCover1},</if>
|
||||||
|
<if test="sdCover2 != null">SD_COVER2 = #{sdCover2},</if>
|
||||||
|
<if test="sdCover3 != null">SD_COVER3 = #{sdCover3},</if>
|
||||||
|
<if test="sdCover4 != null">SD_COVER4 = #{sdCover4},</if>
|
||||||
|
<if test="sdCover5 != null">SD_COVER5 = #{sdCover5},</if>
|
||||||
|
<if test="sdCover6 != null">SD_COVER6 = #{sdCover6},</if>
|
||||||
|
<if test="sdCover7 != null">SD_COVER7 = #{sdCover7},</if>
|
||||||
|
<if test="sdCover8 != null">SD_COVER8 = #{sdCover8},</if>
|
||||||
|
<if test="sdCover9 != null">SD_COVER9 = #{sdCover9},</if>
|
||||||
|
<if test="sdCover10 != null">SD_COVER10 = #{sdCover10},</if>
|
||||||
|
<if test="sdCover11 != null">SD_COVER11 = #{sdCover11},</if>
|
||||||
|
<if test="sdCover12 != null">SD_COVER12 = #{sdCover12},</if>
|
||||||
|
<if test="sdCtrlItemNo != null and sdCtrlItemNo != ''">SD_CTRL_ITEM_NO = #{sdCtrlItemNo},</if>
|
||||||
|
<if test="sdCtrlItemNm != null and sdCtrlItemNm != ''">SD_CTRL_ITEM_NM = #{sdCtrlItemNm},</if>
|
||||||
|
<if test="sdShareBudget != null">SD_SHARE_BUDGET = #{sdShareBudget},</if>
|
||||||
|
<if test="sd999 != null and sd999 != ''">SD_999 = #{sd999},</if>
|
||||||
|
<if test="sd999Nm != null and sd999Nm != ''">SD_999_NM = #{sd999Nm},</if>
|
||||||
|
<if test="sdCtrlMode != null">SD_CTRL_MODE = #{sdCtrlMode},</if>
|
||||||
|
<if test="sdCtrlModeYear != null">SD_CTRL_MODE_YEAR = #{sdCtrlModeYear},</if>
|
||||||
|
<if test="sdRefreshCtrl != null">SD_REFRESH_CTRL = #{sdRefreshCtrl},</if>
|
||||||
|
</set>
|
||||||
|
WHERE ID = #{id}
|
||||||
|
</update>
|
||||||
|
<!-- 删除预算明细表记录 -->
|
||||||
|
<delete id="deleteBudgetSchedule" parameterType="com.hzya.frame.seeyon.lexmisC4.entity.LexmisC4DetailEntity">
|
||||||
|
DELETE FROM LexmisC4_BudgetSheet_Detail WHERE ID = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
|
||||||
|
<select id="queryXmList" parameterType="com.hzya.frame.seeyon.lexmisC4.entity.LexmisC4Entity" resultMap="LexmisC4Map">
|
||||||
|
SELECT
|
||||||
|
Ca_No as SM_CASE_NO,
|
||||||
|
Ca_Name as SM_CASE_NM
|
||||||
|
FROM LexmisC4_Case
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="smCaseno != null and smCaseno != ''">
|
||||||
|
AND Ca_No = #{smCaseno}
|
||||||
|
</if>
|
||||||
|
<if test="smCasenm != null and smCasenm != ''">
|
||||||
|
AND Ca_Name = #{smCasenm}
|
||||||
|
</if>
|
||||||
|
</trim>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<select id="selectMaxList" parameterType="com.hzya.frame.seeyon.lexmisC4.entity.LexmisC4Entity" resultMap="LexmisC4Map">
|
||||||
|
SELECT
|
||||||
|
max(SM_NO) as SM_NO
|
||||||
|
FROM LexmisC4_BudgetSheet_Main
|
||||||
|
|
||||||
|
</select>
|
||||||
|
<select id="selectMinList" parameterType="com.hzya.frame.seeyon.lexmisC4.entity.LexmisC4DetailEntity" resultMap="LexmisC4DetailMap">
|
||||||
|
SELECT
|
||||||
|
min(SD_SORT) as SD_SORT
|
||||||
|
FROM LexmisC4_BudgetSheet_Detail
|
||||||
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
<insert id="saveC4Check" parameterType="com.hzya.frame.seeyon.lexmisC4.entity.LexmisC4CheckEntity">
|
||||||
|
INSERT INTO LexmisC4_BudgetSheet_Check
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="scNo != null and scNo != ''">sc_no,</if>
|
||||||
|
<if test="scSheetNo != null and scSheetNo != ''">sc_sheet_no,</if>
|
||||||
|
<if test="scSheetID != null">sc_sheet_id,</if>
|
||||||
|
<if test="scSheetNum != null">sc_sheet_num,</if>
|
||||||
|
<if test="scMoney != null">sc_money,</if>
|
||||||
|
<if test="scMaker != null and scMaker != ''">sc_maker,</if>
|
||||||
|
<if test="scMakerNm != null and scMakerNm != ''">sc_maker_nm,</if>
|
||||||
|
<if test="scCDate != null">sc_c_date,</if>
|
||||||
|
<if test="scCheck != null">sc_check,</if>
|
||||||
|
<if test="scChecker != null and scChecker != ''">sc_checker,</if>
|
||||||
|
<if test="scCheckerNm != null and scCheckerNm != ''">sc_checker_nm,</if>
|
||||||
|
<if test="scChkDate != null">sc_chk_date,</if>
|
||||||
|
<if test="scState != null">sc_state,</if>
|
||||||
|
<if test="scSource != null">sc_source,</if>
|
||||||
|
<if test="scOANO != null and scOANO != ''">sc_oa_no,</if>
|
||||||
|
<if test="scRecordID != null and scRecordID != ''">sc_record_id,</if>
|
||||||
|
</trim>
|
||||||
|
VALUES
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="scNo != null and scNo != ''">#{scNo},</if>
|
||||||
|
<if test="scSheetNo != null and scSheetNo != ''">#{scSheetNo},</if>
|
||||||
|
<if test="scSheetID != null">#{scSheetID},</if>
|
||||||
|
<if test="scSheetNum != null">#{scSheetNum},</if>
|
||||||
|
<if test="scMoney != null">#{scMoney},</if>
|
||||||
|
<if test="scMaker != null and scMaker != ''">#{scMaker},</if>
|
||||||
|
<if test="scMakerNm != null and scMakerNm != ''">#{scMakerNm},</if>
|
||||||
|
<if test="scCDate != null">#{scCDate},</if>
|
||||||
|
<if test="scCheck != null">#{scCheck},</if>
|
||||||
|
<if test="scChecker != null and scChecker != ''">#{scChecker},</if>
|
||||||
|
<if test="scCheckerNm != null and scCheckerNm != ''">#{scCheckerNm},</if>
|
||||||
|
<if test="scChkDate != null">#{scChkDate},</if>
|
||||||
|
<if test="scState != null">#{scState},</if>
|
||||||
|
<if test="scSource != null">#{scSource},</if>
|
||||||
|
<if test="scOANO != null and scOANO != ''">#{scOANO},</if>
|
||||||
|
<if test="scRecordID != null and scRecordID != ''">#{scRecordID},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<insert id="insertCheckSource" parameterType="com.hzya.frame.seeyon.lexmisC4.entity.LexmisC4CheckSourceEntity">
|
||||||
|
INSERT INTO LexmisC4_CheckSource
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="sheetId != null and sheetId != ''">SHEETID,</if>
|
||||||
|
<if test="sheetNo != null and sheetNo != ''">SHEETNO,</if>
|
||||||
|
<if test="check1 != null and check1 != ''">CHECK1,</if>
|
||||||
|
<if test="check2 != null and check2 != ''">CHECK2,</if>
|
||||||
|
<if test="check3 != null and check3 != ''">CHECK3,</if>
|
||||||
|
<if test="check4 != null and check4 != ''">CHECK4,</if>
|
||||||
|
<if test="check5 != null and check5 != ''">CHECK5,</if>
|
||||||
|
<if test="check6 != null and check6 != ''">CHECK6,</if>
|
||||||
|
<if test="check7 != null and check7 != ''">CHECK7,</if>
|
||||||
|
<if test="check8 != null and check8 != ''">CHECK8,</if>
|
||||||
|
<if test="check9 != null and check9 != ''">CHECK9,</if>
|
||||||
|
<if test="check10 != null and check10 != ''">CHECK10,</if>
|
||||||
|
<if test="check11 != null and check11 != ''">CHECK11,</if>
|
||||||
|
<if test="check12 != null and check12 != ''">CHECK12,</if>
|
||||||
|
<if test="source1 != null and source1 != ''">SOURCE1,</if>
|
||||||
|
<if test="source2 != null and source2 != ''">SOURCE2,</if>
|
||||||
|
<if test="source3 != null and source3 != ''">SOURCE3,</if>
|
||||||
|
<if test="source4 != null and source4 != ''">SOURCE4,</if>
|
||||||
|
<if test="source5 != null and source5 != ''">SOURCE5,</if>
|
||||||
|
<if test="source6 != null and source6 != ''">SOURCE6,</if>
|
||||||
|
<if test="source7 != null and source7 != ''">SOURCE7,</if>
|
||||||
|
<if test="source8 != null and source8 != ''">SOURCE8,</if>
|
||||||
|
<if test="source9 != null and source9 != ''">SOURCE9,</if>
|
||||||
|
<if test="source10 != null and source10 != ''">SOURCE10,</if>
|
||||||
|
<if test="source11 != null and source11 != ''">SOURCE11,</if>
|
||||||
|
<if test="source12 != null and source12 != ''">SOURCE12,</if>
|
||||||
|
<if test="trans1 != null and trans1 != ''">TRANS1,</if>
|
||||||
|
<if test="trans2 != null and trans2 != ''">TRANS2,</if>
|
||||||
|
<if test="trans3 != null and trans3 != ''">TRANS3,</if>
|
||||||
|
<if test="trans4 != null and trans4 != ''">TRANS4,</if>
|
||||||
|
<if test="trans5 != null and trans5 != ''">TRANS5,</if>
|
||||||
|
<if test="trans6 != null and trans6 != ''">TRANS6,</if>
|
||||||
|
<if test="trans7 != null and trans7 != ''">TRANS7,</if>
|
||||||
|
<if test="trans8 != null and trans8 != ''">TRANS8,</if>
|
||||||
|
<if test="trans9 != null and trans9 != ''">TRANS9,</if>
|
||||||
|
<if test="trans10 != null and trans10 != ''">TRANS10,</if>
|
||||||
|
<if test="trans11 != null and trans11 != ''">TRANS11,</if>
|
||||||
|
<if test="trans12 != null and trans12 != ''">TRANS12,</if>
|
||||||
|
</trim>
|
||||||
|
VALUES
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="sheetId != null and sheetId != ''">#{sheetId},</if>
|
||||||
|
<if test="sheetNo != null and sheetNo != ''">#{sheetNo},</if>
|
||||||
|
<if test="check1 != null and check1 != ''">#{check1},</if>
|
||||||
|
<if test="check2 != null and check2 != ''">#{check2},</if>
|
||||||
|
<if test="check3 != null and check3 != ''">#{check3},</if>
|
||||||
|
<if test="check4 != null and check4 != ''">#{check4},</if>
|
||||||
|
<if test="check5 != null and check5 != ''">#{check5},</if>
|
||||||
|
<if test="check6 != null and check6 != ''">#{check6},</if>
|
||||||
|
<if test="check7 != null and check7 != ''">#{check7},</if>
|
||||||
|
<if test="check8 != null and check8 != ''">#{check8},</if>
|
||||||
|
<if test="check9 != null and check9 != ''">#{check9},</if>
|
||||||
|
<if test="check10 != null and check10 != ''">#{check10},</if>
|
||||||
|
<if test="check11 != null and check11 != ''">#{check11},</if>
|
||||||
|
<if test="check12 != null and check12 != ''">#{check12},</if>
|
||||||
|
<if test="source1 != null and source1 != ''">#{source1},</if>
|
||||||
|
<if test="source2 != null and source2 != ''">#{source2},</if>
|
||||||
|
<if test="source3 != null and source3 != ''">#{source3},</if>
|
||||||
|
<if test="source4 != null and source4 != ''">#{source4},</if>
|
||||||
|
<if test="source5 != null and source5 != ''">#{source5},</if>
|
||||||
|
<if test="source6 != null and source6 != ''">#{source6},</if>
|
||||||
|
<if test="source7 != null and source7 != ''">#{source7},</if>
|
||||||
|
<if test="source8 != null and source8 != ''">#{source8},</if>
|
||||||
|
<if test="source9 != null and source9 != ''">#{source9},</if>
|
||||||
|
<if test="source10 != null and source10 != ''">#{source10},</if>
|
||||||
|
<if test="source11 != null and source11 != ''">#{source11},</if>
|
||||||
|
<if test="source12 != null and source12 != ''">#{source12},</if>
|
||||||
|
<if test="trans1 != null and trans1 != ''">#{trans1},</if>
|
||||||
|
<if test="trans2 != null and trans2 != ''">#{trans2},</if>
|
||||||
|
<if test="trans3 != null and trans3 != ''">#{trans3},</if>
|
||||||
|
<if test="trans4 != null and trans4 != ''">#{trans4},</if>
|
||||||
|
<if test="trans5 != null and trans5 != ''">#{trans5},</if>
|
||||||
|
<if test="trans6 != null and trans6 != ''">#{trans6},</if>
|
||||||
|
<if test="trans7 != null and trans7 != ''">#{trans7},</if>
|
||||||
|
<if test="trans8 != null and trans8 != ''">#{trans8},</if>
|
||||||
|
<if test="trans9 != null and trans9 != ''">#{trans9},</if>
|
||||||
|
<if test="trans10 != null and trans10 != ''">#{trans10},</if>
|
||||||
|
<if test="trans11 != null and trans11 != ''">#{trans11},</if>
|
||||||
|
<if test="trans12 != null and trans12 != ''">#{trans12},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
</mapper>
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
package com.hzya.frame.seeyon.lexmisC4.service;
|
||||||
|
|
||||||
|
import com.hzya.frame.basedao.service.IBaseService;
|
||||||
|
import com.hzya.frame.seeyon.lexmisC4.entity.LexmisC4Entity;
|
||||||
|
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||||
|
|
||||||
|
|
||||||
|
public interface ILexmisC4Service extends IBaseService<LexmisC4Entity, String> {
|
||||||
|
/**
|
||||||
|
* @Author lvleigang
|
||||||
|
* @Description 保存C4预算编制
|
||||||
|
* @Date 1:26 下午 2025/7/8
|
||||||
|
* @param entity
|
||||||
|
* @return int
|
||||||
|
**/
|
||||||
|
JsonResultEntity saveLexmisC4(LexmisC4Entity entity);
|
||||||
|
}
|
|
@ -0,0 +1,430 @@
|
||||||
|
package com.hzya.frame.seeyon.lexmisC4.service.impl;
|
||||||
|
|
||||||
|
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||||
|
import com.hzya.frame.seeyon.lexmisC4.dao.ILexmisC4Dao;
|
||||||
|
import com.hzya.frame.seeyon.lexmisC4.entity.LexmisC4CheckEntity;
|
||||||
|
import com.hzya.frame.seeyon.lexmisC4.entity.LexmisC4CheckSourceEntity;
|
||||||
|
import com.hzya.frame.seeyon.lexmisC4.entity.LexmisC4DetailEntity;
|
||||||
|
import com.hzya.frame.seeyon.lexmisC4.entity.LexmisC4Entity;
|
||||||
|
import com.hzya.frame.seeyon.lexmisC4.service.ILexmisC4Service;
|
||||||
|
import com.hzya.frame.web.entity.BaseResult;
|
||||||
|
import com.hzya.frame.web.entity.JsonResultEntity;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
|
@Service()
|
||||||
|
public class LexmisC4ServiceImpl extends BaseService<LexmisC4Entity, String> implements ILexmisC4Service {
|
||||||
|
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private ILexmisC4Dao lexmisC4Dao;
|
||||||
|
/**
|
||||||
|
* @param entity
|
||||||
|
* @return int
|
||||||
|
* @Author lvleigang
|
||||||
|
* @Description 保存C4预算编制
|
||||||
|
* @Date 1:26 下午 2025/7/8
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public JsonResultEntity saveLexmisC4(LexmisC4Entity entity) {
|
||||||
|
//判断对象
|
||||||
|
if(entity == null ){
|
||||||
|
return BaseResult.getFailureMessageEntity("对象为空");
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList() == null || entity.getDetailEntityList().size() == 0){
|
||||||
|
return BaseResult.getFailureMessageEntity("对象明细为空");
|
||||||
|
}
|
||||||
|
//校验字段
|
||||||
|
if(entity.getSmBudgetOrg() == null){
|
||||||
|
return BaseResult.getFailureMessageEntity("预算单位代号为空");
|
||||||
|
}
|
||||||
|
if(entity.getSmBudgetOrgNm() == null){
|
||||||
|
return BaseResult.getFailureMessageEntity("预算单位名称为空");
|
||||||
|
}
|
||||||
|
if(entity.getSmClose() == null){
|
||||||
|
return BaseResult.getFailureMessageEntity("预算表关闭为空");
|
||||||
|
}
|
||||||
|
if(entity.getSmYear() == null){
|
||||||
|
entity.setSmYear(0); //预算年度
|
||||||
|
}
|
||||||
|
if(entity.getSmCaseno() == null){
|
||||||
|
return BaseResult.getFailureMessageEntity("项目编号为空");
|
||||||
|
}
|
||||||
|
|
||||||
|
if(entity.getSmCasenm() == null){
|
||||||
|
return BaseResult.getFailureMessageEntity("项目名称为空");
|
||||||
|
}
|
||||||
|
if(entity.getSmPlanNo() == null){
|
||||||
|
return BaseResult.getFailureMessageEntity("方案代号为空");
|
||||||
|
}
|
||||||
|
if(entity.getSmPlanNm() == null){
|
||||||
|
return BaseResult.getFailureMessageEntity("方案名称为空");
|
||||||
|
}
|
||||||
|
if(entity.getSmMaker() == null){
|
||||||
|
return BaseResult.getFailureMessageEntity("编制人为空");
|
||||||
|
}
|
||||||
|
|
||||||
|
if(entity.getSmMakerNm() == null){
|
||||||
|
return BaseResult.getFailureMessageEntity("编制人名称为空");
|
||||||
|
}
|
||||||
|
if(entity.getSmCDate() == null){
|
||||||
|
return BaseResult.getFailureMessageEntity("编制日期为空");
|
||||||
|
}
|
||||||
|
if(entity.getSmCheck() == null){
|
||||||
|
return BaseResult.getFailureMessageEntity("是否审核为空");
|
||||||
|
}
|
||||||
|
if(entity.getSmMonth() == null){
|
||||||
|
entity.setSmMonth(0); //起始月份
|
||||||
|
}
|
||||||
|
if(entity.getSmEYear() == null){
|
||||||
|
entity.setSmEYear(0); //截止年度
|
||||||
|
}
|
||||||
|
if(entity.getSmEMonth() == null){
|
||||||
|
entity.setSmEMonth(0); //截止月份
|
||||||
|
}
|
||||||
|
for (int i = 0; i < entity.getDetailEntityList().size(); i++) {
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdPlanNo() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdPlanNo(entity.getSmPlanNo());
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdPlanNm() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdPlanNm(entity.getSmPlanNm());
|
||||||
|
}
|
||||||
|
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdMaker() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdMaker(entity.getSmMaker());
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdMakerNm() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdMakerNm(entity.getSmMakerNm());
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdCDate() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdCDate(entity.getSmCDate());
|
||||||
|
}
|
||||||
|
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdCheck() == null){
|
||||||
|
return BaseResult.getFailureMessageEntity("明细是否审核为空");
|
||||||
|
}
|
||||||
|
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdChecker() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdChecker(entity.getSmChecker());
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdCheckerNm() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdCheckerNm(entity.getSmCheckerNm());
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdChkDate() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdChkDate(entity.getSmChkDate());
|
||||||
|
}
|
||||||
|
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdChargeNo() == null){
|
||||||
|
return BaseResult.getFailureMessageEntity("明细费用编号为空");
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdChargeNm() == null){
|
||||||
|
return BaseResult.getFailureMessageEntity("明细费用名称为空");
|
||||||
|
}
|
||||||
|
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdMoney1() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdMoney1(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdMoney2() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdMoney2(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdMoney3() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdMoney3(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdMoney4() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdMoney4(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdMoney5() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdMoney5(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdMoney6() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdMoney6(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdMoney7() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdMoney7(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdMoney8() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdMoney8(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdMoney9() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdMoney9(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdMoney10() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdMoney10(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdMoney11() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdMoney11(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdMoney12() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdMoney12(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdAdjust1() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdAdjust1(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdAdjust2() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdAdjust2(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdAdjust3() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdAdjust3(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdAdjust4() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdAdjust4(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdAdjust5() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdAdjust5(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdAdjust6() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdAdjust6(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdAdjust7() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdAdjust7(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdAdjust8() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdAdjust8(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdAdjust9() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdAdjust9(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdAdjust10() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdAdjust10(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdAdjust11() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdAdjust11(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdAdjust12() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdAdjust12(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdApply1() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdApply1(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdApply2() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdApply2(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdApply3() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdApply3(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdApply4() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdApply4(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdApply5() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdApply5(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdApply6() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdApply6(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdApply7() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdApply7(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdApply8() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdApply8(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdApply9() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdApply9(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdApply10() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdApply10(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdApply11() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdApply11(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdApply12() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdApply12(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdCover1() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdCover1(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdCover2() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdCover2(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdCover3() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdCover3(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdCover4() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdCover4(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdCover5() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdCover5(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdCover6() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdCover6(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdCover7() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdCover7(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdCover8() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdCover8(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdCover9() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdCover9(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdCover10() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdCover10(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdCover11() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdCover11(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdCover12() == null){
|
||||||
|
entity.getDetailEntityList().get(i).setSdCover12(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
|
|
||||||
|
//if(entity.getDetailEntityList().get(i).getSdCtrlItemNo() == null){
|
||||||
|
// return BaseResult.getFailureMessageEntity("明细强控上级口径编号为空");
|
||||||
|
//}
|
||||||
|
//if(entity.getDetailEntityList().get(i).getSdCtrlItemNm() == null){
|
||||||
|
// return BaseResult.getFailureMessageEntity("明细强控上级口径名称为空");
|
||||||
|
//}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdShareBudget() == null){
|
||||||
|
return BaseResult.getFailureMessageEntity("明细预算共用为空");//1勾选0取消
|
||||||
|
}
|
||||||
|
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdCtrlMode() == null){
|
||||||
|
return BaseResult.getFailureMessageEntity("明细当期控制强度为空");//1勾选0取消
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdCtrlModeYear() == null){
|
||||||
|
return BaseResult.getFailureMessageEntity("明细超年控制强度为空");//1勾选0取消
|
||||||
|
}
|
||||||
|
if(entity.getDetailEntityList().get(i).getSdRefreshCtrl() == null){
|
||||||
|
return BaseResult.getFailureMessageEntity("明细是否需要升级强度标识为空");//1勾选0取消
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//判断是否存在项目
|
||||||
|
List<LexmisC4Entity> xmlist = lexmisC4Dao.queryXmList(entity);
|
||||||
|
if(xmlist == null || xmlist.size() != 1){
|
||||||
|
return BaseResult.getFailureMessageEntity("项目档案错误");
|
||||||
|
}
|
||||||
|
|
||||||
|
//判断C4是否存在
|
||||||
|
LexmisC4Entity lexmisC4Entity = new LexmisC4Entity();
|
||||||
|
lexmisC4Entity.setDataSourceCode(entity.getDataSourceCode());
|
||||||
|
lexmisC4Entity.setSmCaseno(entity.getSmCaseno());
|
||||||
|
lexmisC4Entity.setSmCasenm(entity.getSmCasenm());
|
||||||
|
List<LexmisC4Entity> lexmisC4Entities = lexmisC4Dao.selectLexmisC4(lexmisC4Entity);
|
||||||
|
if(lexmisC4Entities != null && lexmisC4Entities.size() > 0){
|
||||||
|
return BaseResult.getFailureMessageEntity("已存在该项目的预算编制");
|
||||||
|
}
|
||||||
|
//获取最大的预算编制号
|
||||||
|
LexmisC4Entity maxNo = new LexmisC4Entity();
|
||||||
|
maxNo.setDataSourceCode(entity.getDataSourceCode());
|
||||||
|
List<LexmisC4Entity> maxList = lexmisC4Dao.selectMaxList(maxNo);
|
||||||
|
String smNo = "1";
|
||||||
|
if(maxList != null && maxList.size() > 0 ){
|
||||||
|
smNo = String.valueOf(Integer.valueOf(maxList.get(0).getSmNo())+1);
|
||||||
|
}
|
||||||
|
entity.setSmNo(smNo);
|
||||||
|
|
||||||
|
//保存预算编制
|
||||||
|
lexmisC4Dao.insertLexmisC4(entity);
|
||||||
|
|
||||||
|
LexmisC4DetailEntity minEntity = new LexmisC4DetailEntity();
|
||||||
|
minEntity.setDataSourceCode(entity.getDataSourceCode());
|
||||||
|
List<LexmisC4DetailEntity> minList = lexmisC4Dao.selectMinList(minEntity);
|
||||||
|
Integer sdSort = 1;
|
||||||
|
if(minList != null && minList.size() > 0 ){
|
||||||
|
sdSort = minList.get(0).getSdSort()-1;
|
||||||
|
}
|
||||||
|
//保存预算编制明细
|
||||||
|
for (int i = 0; i < entity.getDetailEntityList().size(); i++) {
|
||||||
|
entity.getDetailEntityList().get(i).setDataSourceCode(entity.getDataSourceCode());
|
||||||
|
entity.getDetailEntityList().get(i).setSdSheetNo(smNo);
|
||||||
|
entity.getDetailEntityList().get(i).setSdSort(sdSort);
|
||||||
|
sdSort = sdSort -1;
|
||||||
|
lexmisC4Dao.insertLexmisC4Detail(entity.getDetailEntityList().get(i));
|
||||||
|
logger.error("C4保存后是否返回id:"+entity.getDetailEntityList().get(i).getId());
|
||||||
|
LexmisC4CheckSourceEntity lexmisC4CheckSourceEntity = new LexmisC4CheckSourceEntity(entity.getDetailEntityList().get(i).getId(),smNo);
|
||||||
|
lexmisC4CheckSourceEntity.setDataSourceCode(entity.getDataSourceCode());
|
||||||
|
//保存审批信息明细
|
||||||
|
if(BigDecimal.ZERO.compareTo(entity.getDetailEntityList().get(i).getSdMoney1()) != 0){
|
||||||
|
lexmisC4CheckSourceEntity.setCheck1("1");
|
||||||
|
saveCheck(smNo,entity.getDetailEntityList().get(i).getId(),1,entity.getDetailEntityList().get(i).getSdMoney1(),entity.getSmMaker(),entity.getSmMakerNm(),entity.getSmCDate(),1,entity.getSmChecker(),entity.getSmCheckerNm(),entity.getSmChkDate(),entity.getDataSourceCode());
|
||||||
|
}
|
||||||
|
if(BigDecimal.ZERO.compareTo(entity.getDetailEntityList().get(i).getSdMoney2()) != 0){
|
||||||
|
lexmisC4CheckSourceEntity.setCheck2("1");
|
||||||
|
saveCheck(smNo,entity.getDetailEntityList().get(i).getId(),2,entity.getDetailEntityList().get(i).getSdMoney2(),entity.getSmMaker(),entity.getSmMakerNm(),entity.getSmCDate(),1,entity.getSmChecker(),entity.getSmCheckerNm(),entity.getSmChkDate(),entity.getDataSourceCode());
|
||||||
|
}
|
||||||
|
if(BigDecimal.ZERO.compareTo(entity.getDetailEntityList().get(i).getSdMoney3()) != 0){
|
||||||
|
lexmisC4CheckSourceEntity.setCheck3("1");
|
||||||
|
|
||||||
|
saveCheck(smNo,entity.getDetailEntityList().get(i).getId(),3,entity.getDetailEntityList().get(i).getSdMoney3(),entity.getSmMaker(),entity.getSmMakerNm(),entity.getSmCDate(),1,entity.getSmChecker(),entity.getSmCheckerNm(),entity.getSmChkDate(),entity.getDataSourceCode());
|
||||||
|
}
|
||||||
|
if(BigDecimal.ZERO.compareTo(entity.getDetailEntityList().get(i).getSdMoney4()) != 0){
|
||||||
|
lexmisC4CheckSourceEntity.setCheck4("1");
|
||||||
|
|
||||||
|
saveCheck(smNo,entity.getDetailEntityList().get(i).getId(),4,entity.getDetailEntityList().get(i).getSdMoney4(),entity.getSmMaker(),entity.getSmMakerNm(),entity.getSmCDate(),1,entity.getSmChecker(),entity.getSmCheckerNm(),entity.getSmChkDate(),entity.getDataSourceCode());
|
||||||
|
}
|
||||||
|
if(BigDecimal.ZERO.compareTo(entity.getDetailEntityList().get(i).getSdMoney5()) != 0){
|
||||||
|
lexmisC4CheckSourceEntity.setCheck5("1");
|
||||||
|
|
||||||
|
saveCheck(smNo,entity.getDetailEntityList().get(i).getId(),5,entity.getDetailEntityList().get(i).getSdMoney5(),entity.getSmMaker(),entity.getSmMakerNm(),entity.getSmCDate(),1,entity.getSmChecker(),entity.getSmCheckerNm(),entity.getSmChkDate(),entity.getDataSourceCode());
|
||||||
|
}
|
||||||
|
if(BigDecimal.ZERO.compareTo(entity.getDetailEntityList().get(i).getSdMoney6()) != 0){
|
||||||
|
lexmisC4CheckSourceEntity.setCheck6("1");
|
||||||
|
|
||||||
|
saveCheck(smNo,entity.getDetailEntityList().get(i).getId(),6,entity.getDetailEntityList().get(i).getSdMoney6(),entity.getSmMaker(),entity.getSmMakerNm(),entity.getSmCDate(),1,entity.getSmChecker(),entity.getSmCheckerNm(),entity.getSmChkDate(),entity.getDataSourceCode());
|
||||||
|
}
|
||||||
|
if(BigDecimal.ZERO.compareTo(entity.getDetailEntityList().get(i).getSdMoney7()) != 0){
|
||||||
|
lexmisC4CheckSourceEntity.setCheck7("1");
|
||||||
|
|
||||||
|
saveCheck(smNo,entity.getDetailEntityList().get(i).getId(),7,entity.getDetailEntityList().get(i).getSdMoney7(),entity.getSmMaker(),entity.getSmMakerNm(),entity.getSmCDate(),1,entity.getSmChecker(),entity.getSmCheckerNm(),entity.getSmChkDate(),entity.getDataSourceCode());
|
||||||
|
}
|
||||||
|
if(BigDecimal.ZERO.compareTo(entity.getDetailEntityList().get(i).getSdMoney8()) != 0){
|
||||||
|
lexmisC4CheckSourceEntity.setCheck8("1");
|
||||||
|
|
||||||
|
saveCheck(smNo,entity.getDetailEntityList().get(i).getId(),8,entity.getDetailEntityList().get(i).getSdMoney8(),entity.getSmMaker(),entity.getSmMakerNm(),entity.getSmCDate(),1,entity.getSmChecker(),entity.getSmCheckerNm(),entity.getSmChkDate(),entity.getDataSourceCode());
|
||||||
|
}
|
||||||
|
if(BigDecimal.ZERO.compareTo(entity.getDetailEntityList().get(i).getSdMoney9()) != 0){
|
||||||
|
lexmisC4CheckSourceEntity.setCheck9("1");
|
||||||
|
|
||||||
|
saveCheck(smNo,entity.getDetailEntityList().get(i).getId(),9,entity.getDetailEntityList().get(i).getSdMoney9(),entity.getSmMaker(),entity.getSmMakerNm(),entity.getSmCDate(),1,entity.getSmChecker(),entity.getSmCheckerNm(),entity.getSmChkDate(),entity.getDataSourceCode());
|
||||||
|
}
|
||||||
|
if(BigDecimal.ZERO.compareTo(entity.getDetailEntityList().get(i).getSdMoney10()) != 0){
|
||||||
|
lexmisC4CheckSourceEntity.setCheck10("1");
|
||||||
|
|
||||||
|
saveCheck(smNo,entity.getDetailEntityList().get(i).getId(),10,entity.getDetailEntityList().get(i).getSdMoney10(),entity.getSmMaker(),entity.getSmMakerNm(),entity.getSmCDate(),1,entity.getSmChecker(),entity.getSmCheckerNm(),entity.getSmChkDate(),entity.getDataSourceCode());
|
||||||
|
}
|
||||||
|
if(BigDecimal.ZERO.compareTo(entity.getDetailEntityList().get(i).getSdMoney11()) != 0){
|
||||||
|
lexmisC4CheckSourceEntity.setCheck11("1");
|
||||||
|
|
||||||
|
saveCheck(smNo,entity.getDetailEntityList().get(i).getId(),11,entity.getDetailEntityList().get(i).getSdMoney11(),entity.getSmMaker(),entity.getSmMakerNm(),entity.getSmCDate(),1,entity.getSmChecker(),entity.getSmCheckerNm(),entity.getSmChkDate(),entity.getDataSourceCode());
|
||||||
|
}
|
||||||
|
if(BigDecimal.ZERO.compareTo(entity.getDetailEntityList().get(i).getSdMoney12()) != 0){
|
||||||
|
lexmisC4CheckSourceEntity.setCheck12("1");
|
||||||
|
|
||||||
|
saveCheck(smNo,entity.getDetailEntityList().get(i).getId(),12,entity.getDetailEntityList().get(i).getSdMoney12(),entity.getSmMaker(),entity.getSmMakerNm(),entity.getSmCDate(),1,entity.getSmChecker(),entity.getSmCheckerNm(),entity.getSmChkDate(),entity.getDataSourceCode());
|
||||||
|
}
|
||||||
|
//保存审批信息来源
|
||||||
|
lexmisC4Dao.insertCheckSource(lexmisC4CheckSourceEntity);
|
||||||
|
}
|
||||||
|
|
||||||
|
return BaseResult.getSuccessMessageEntity("保存成功");
|
||||||
|
}
|
||||||
|
|
||||||
|
private void saveCheck(String scSheetNo, String scSheetID, int scSheetNum, BigDecimal scMoney, String smMaker, String smMakerNm, Date smCDate,
|
||||||
|
int scCheck, String smChecker, String smCheckerNm, Date smChkDate,String dataSourceCode) {
|
||||||
|
LexmisC4CheckEntity lexmisC4CheckEntity = new LexmisC4CheckEntity();
|
||||||
|
lexmisC4CheckEntity.setDataSourceCode(dataSourceCode);
|
||||||
|
lexmisC4CheckEntity.setScNo(null);
|
||||||
|
lexmisC4CheckEntity.setScSheetNo(scSheetNo);
|
||||||
|
lexmisC4CheckEntity.setScSheetID(Integer.valueOf(scSheetID));
|
||||||
|
lexmisC4CheckEntity.setScSheetNum(scSheetNum);
|
||||||
|
lexmisC4CheckEntity.setScMoney(scMoney);
|
||||||
|
lexmisC4CheckEntity.setScMaker(smMaker);
|
||||||
|
lexmisC4CheckEntity.setScMakerNm(smMakerNm);
|
||||||
|
lexmisC4CheckEntity.setScCDate(smCDate);
|
||||||
|
lexmisC4CheckEntity.setScCheck(scCheck);
|
||||||
|
lexmisC4CheckEntity.setScChecker(smChecker);
|
||||||
|
lexmisC4CheckEntity.setScCheckerNm(smCheckerNm);
|
||||||
|
lexmisC4CheckEntity.setScCDate(smChkDate);
|
||||||
|
lexmisC4CheckEntity.setScState(1);
|
||||||
|
lexmisC4CheckEntity.setScSource(0);
|
||||||
|
lexmisC4Dao.saveC4Check(lexmisC4CheckEntity);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue