预算编制生成
This commit is contained in:
parent
7e4fadbd82
commit
74c5bff3b5
|
@ -29,4 +29,8 @@ public interface IC4ProjectDao extends IBaseDao<C4ProjectEntity,String> {
|
||||||
Integer saveC4Project(C4ProjectEntity entity);
|
Integer saveC4Project(C4ProjectEntity entity);
|
||||||
|
|
||||||
List<LexmisC4ProjectEntity> queryAffair(LexmisC4ProjectEntity lexmisC4ProjectEntity);
|
List<LexmisC4ProjectEntity> queryAffair(LexmisC4ProjectEntity lexmisC4ProjectEntity);
|
||||||
|
|
||||||
|
List<C4ProjectEntity> queryBm(C4ProjectEntity bm);
|
||||||
|
|
||||||
|
List<C4ProjectEntity> queryBmBypath(C4ProjectEntity bm);
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,13 +13,13 @@ public class C4ProjectDaoImpl extends MybatisGenericDao<C4ProjectEntity,String>
|
||||||
@DS("#entity.dataSourceCode")
|
@DS("#entity.dataSourceCode")
|
||||||
@Override
|
@Override
|
||||||
public List<C4ProjectEntity> queryProjectToC4(C4ProjectEntity entity) {
|
public List<C4ProjectEntity> queryProjectToC4(C4ProjectEntity entity) {
|
||||||
return (List<C4ProjectEntity>) super.selectList("queryProjectToC4",entity);
|
return (List<C4ProjectEntity>) super.selectList(getSqlIdPrifx()+"queryProjectToC4",entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
@DS("#entity.dataSourceCode")
|
@DS("#entity.dataSourceCode")
|
||||||
@Override
|
@Override
|
||||||
public Integer saveC4Project(C4ProjectEntity entity) {
|
public Integer saveC4Project(C4ProjectEntity entity) {
|
||||||
return super.insert("saveC4Project",entity);
|
return super.insert(getSqlIdPrifx()+"saveC4Project",entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
@DS("#entity.dataSourceCode")
|
@DS("#entity.dataSourceCode")
|
||||||
|
@ -28,4 +28,14 @@ public class C4ProjectDaoImpl extends MybatisGenericDao<C4ProjectEntity,String>
|
||||||
return (List<LexmisC4ProjectEntity>) super.selectList(getSqlIdPrifx()+"queryAffair",entity);
|
return (List<LexmisC4ProjectEntity>) super.selectList(getSqlIdPrifx()+"queryAffair",entity);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@DS("#entity.dataSourceCode")
|
||||||
|
@Override
|
||||||
|
public List<C4ProjectEntity> queryBm(C4ProjectEntity entity) {
|
||||||
|
return (List<C4ProjectEntity>) super.selectList(getSqlIdPrifx()+"queryBm",entity);
|
||||||
|
}
|
||||||
|
@DS("#entity.dataSourceCode")
|
||||||
|
@Override
|
||||||
|
public List<C4ProjectEntity> queryBmBypath(C4ProjectEntity entity) {
|
||||||
|
return (List<C4ProjectEntity>) super.selectList(getSqlIdPrifx()+"queryBmBypath",entity);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,6 +2,8 @@ package com.hzya.frame.plugin.c4project.entity;
|
||||||
|
|
||||||
import com.hzya.frame.web.entity.BaseEntity;
|
import com.hzya.frame.web.entity.BaseEntity;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
public class C4ProjectEntity extends BaseEntity {
|
public class C4ProjectEntity extends BaseEntity {
|
||||||
private String caNo;//项目编号
|
private String caNo;//项目编号
|
||||||
private String caName;//项目名称
|
private String caName;//项目名称
|
||||||
|
@ -18,7 +20,10 @@ public class C4ProjectEntity extends BaseEntity {
|
||||||
private String caFulllevelno;//
|
private String caFulllevelno;//
|
||||||
private String startTime;//开始时间
|
private String startTime;//开始时间
|
||||||
private String endTime;//结束时间
|
private String endTime;//结束时间
|
||||||
|
private String bm; // 部门
|
||||||
|
private String bmmc; // 部门名称
|
||||||
|
private String path; // 部门名称
|
||||||
|
private List<String> pathList;
|
||||||
|
|
||||||
public String getCaBudgetorg() {
|
public String getCaBudgetorg() {
|
||||||
return caBudgetorg;
|
return caBudgetorg;
|
||||||
|
@ -139,4 +144,36 @@ public class C4ProjectEntity extends BaseEntity {
|
||||||
public void setCaBudgetamt(String caBudgetamt) {
|
public void setCaBudgetamt(String caBudgetamt) {
|
||||||
this.caBudgetamt = caBudgetamt;
|
this.caBudgetamt = caBudgetamt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getBm() {
|
||||||
|
return bm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBm(String bm) {
|
||||||
|
this.bm = bm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBmmc() {
|
||||||
|
return bmmc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBmmc(String bmmc) {
|
||||||
|
this.bmmc = bmmc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPath() {
|
||||||
|
return path;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPath(String path) {
|
||||||
|
this.path = path;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<String> getPathList() {
|
||||||
|
return pathList;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPathList(List<String> pathList) {
|
||||||
|
this.pathList = pathList;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -105,5 +105,22 @@ and field0052 in (
|
||||||
<if test="affairId != null and affairId !='' ">id = #{affairId} </if>
|
<if test="affairId != null and affairId !='' ">id = #{affairId} </if>
|
||||||
</trim>
|
</trim>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
<!--查询研发项目立项,推送BC4项目档案-->
|
||||||
|
<select id="queryBm" resultType="com.hzya.frame.plugin.c4project.entity.C4ProjectEntity" parameterType = "com.hzya.frame.plugin.c4project.entity.C4ProjectEntity">
|
||||||
|
SELECT path as path from ORG_UNIT
|
||||||
|
<trim prefix="where" prefixOverrides="and">
|
||||||
|
<if test="bm != null and bm !='' ">id = #{bm} </if>
|
||||||
|
</trim>
|
||||||
|
</select>
|
||||||
|
<!--查询研发项目立项,推送BC4项目档案-->
|
||||||
|
<select id="queryBmBypath" resultType="com.hzya.frame.plugin.c4project.entity.C4ProjectEntity" parameterType = "com.hzya.frame.plugin.c4project.entity.C4ProjectEntity">
|
||||||
|
SELECT path as path,name as bmmc from ORG_UNIT
|
||||||
|
WHERE PATH in
|
||||||
|
<foreach collection="pathList" item="item" index="index" open="(" close=")" separator=",">
|
||||||
|
#{item}
|
||||||
|
</foreach>
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONArray;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.hzya.frame.base.PluginBaseEntity;
|
import com.hzya.frame.base.PluginBaseEntity;
|
||||||
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.LexmisC4ProjectEntity;
|
import com.hzya.frame.plugin.c4project.entity.LexmisC4ProjectEntity;
|
||||||
import com.hzya.frame.plugin.masterData.plugin.MdmPluginInitializer;
|
import com.hzya.frame.plugin.masterData.plugin.MdmPluginInitializer;
|
||||||
import com.hzya.frame.plugin.nuonuo.entity.NuoNuoEntity;
|
import com.hzya.frame.plugin.nuonuo.entity.NuoNuoEntity;
|
||||||
|
@ -145,16 +146,16 @@ public class LexmisC4ProjectPluginInitializer extends PluginBaseEntity{
|
||||||
}
|
}
|
||||||
if("-6504696439968085996".equals(mainData.getString("field0052"))){
|
if("-6504696439968085996".equals(mainData.getString("field0052"))){
|
||||||
lexmisC4Entity.setSmBudgetOrg("-978677123947674601");//预算单位代号
|
lexmisC4Entity.setSmBudgetOrg("-978677123947674601");//预算单位代号
|
||||||
lexmisC4Entity.setSmBudgetOrgNm("'浙江三维利普维网络有限公司'");//预算单位名称
|
lexmisC4Entity.setSmBudgetOrgNm("浙江三维利普维网络有限公司");//预算单位名称
|
||||||
}else if("7045878877534307194".equals(mainData.getString("field0052"))){
|
}else if("7045878877534307194".equals(mainData.getString("field0052"))){
|
||||||
lexmisC4Entity.setSmBudgetOrg("'670869647114347'");//预算单位代号
|
lexmisC4Entity.setSmBudgetOrg("670869647114347");//预算单位代号
|
||||||
lexmisC4Entity.setSmBudgetOrgNm("'三维通信股份有限公司'");//预算单位名称
|
lexmisC4Entity.setSmBudgetOrgNm("三维通信股份有限公司");//预算单位名称
|
||||||
}else if("-5302246194420562875".equals(mainData.getString("field0052"))){
|
}else if("-5302246194420562875".equals(mainData.getString("field0052"))){
|
||||||
lexmisC4Entity.setSmBudgetOrg("-3530937844003287164");//预算单位代号
|
lexmisC4Entity.setSmBudgetOrg("-3530937844003287164");//预算单位代号
|
||||||
lexmisC4Entity.setSmBudgetOrgNm("'浙江三维通信科技有限公司'");//预算单位名称
|
lexmisC4Entity.setSmBudgetOrgNm("浙江三维通信科技有限公司");//预算单位名称
|
||||||
}else if("-8106884040682618016".equals(mainData.getString("field0052"))){
|
}else if("-8106884040682618016".equals(mainData.getString("field0052"))){
|
||||||
lexmisC4Entity.setSmBudgetOrg("-3759985945848298333");//预算单位代号
|
lexmisC4Entity.setSmBudgetOrg("-3759985945848298333");//预算单位代号
|
||||||
lexmisC4Entity.setSmBudgetOrgNm("'浙江三维通信研究院有限公司'");//预算单位名称
|
lexmisC4Entity.setSmBudgetOrgNm("浙江三维通信研究院有限公司");//预算单位名称
|
||||||
}else {
|
}else {
|
||||||
return BaseResult.getSuccessMessageEntity("项目归属主体不是这四个,不同步");
|
return BaseResult.getSuccessMessageEntity("项目归属主体不是这四个,不同步");
|
||||||
}
|
}
|
||||||
|
@ -172,7 +173,30 @@ public class LexmisC4ProjectPluginInitializer extends PluginBaseEntity{
|
||||||
lexmisC4Entity.setSmEYear(0);//截止年度
|
lexmisC4Entity.setSmEYear(0);//截止年度
|
||||||
lexmisC4Entity.setSmEMonth(0);//截止月份
|
lexmisC4Entity.setSmEMonth(0);//截止月份
|
||||||
lexmisC4Entity.setSmOAno(mainData.getString("field0001"));//OA 单据编号
|
lexmisC4Entity.setSmOAno(mainData.getString("field0001"));//OA 单据编号
|
||||||
|
StringBuffer bmmc = new StringBuffer();
|
||||||
|
//查找部门
|
||||||
|
if(mainData.getString("field0069") != null && !"".equals(mainData.getString("field0069"))){
|
||||||
|
C4ProjectEntity bm = new C4ProjectEntity();
|
||||||
|
bm.setDataSourceCode("SW-OA");
|
||||||
|
bm.setBm(mainData.getString("field0069"));// 部门
|
||||||
|
List<C4ProjectEntity> list = ic4ProjectDao.queryBm(bm);
|
||||||
|
if(list != null && list.size() == 1){
|
||||||
|
List<String> pathList = new ArrayList<>();
|
||||||
|
String path = list.get(0).getPath();
|
||||||
|
if(path != null && !"".equals(path)){
|
||||||
|
splitReverse(path,pathList);
|
||||||
|
if(pathList != null && pathList.size() > 0){
|
||||||
|
C4ProjectEntity projectEntity = new C4ProjectEntity();
|
||||||
|
projectEntity.setDataSourceCode("SW-OA");
|
||||||
|
projectEntity.setPathList(pathList);// 部门
|
||||||
|
List<C4ProjectEntity> name = ic4ProjectDao.queryBmBypath(projectEntity);
|
||||||
|
if(name != null && name.size() > 0){
|
||||||
|
bmmc = getbmmc(path,name,bmmc);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
List<LexmisC4DetailEntity> detailEntityList = new ArrayList<>();
|
List<LexmisC4DetailEntity> detailEntityList = new ArrayList<>();
|
||||||
for (int i = 0; i < detailArray.size(); i++) {
|
for (int i = 0; i < detailArray.size(); i++) {
|
||||||
LexmisC4DetailEntity lexmisC4DetailEntity = new LexmisC4DetailEntity();
|
LexmisC4DetailEntity lexmisC4DetailEntity = new LexmisC4DetailEntity();
|
||||||
|
@ -187,8 +211,8 @@ public class LexmisC4ProjectPluginInitializer extends PluginBaseEntity{
|
||||||
lexmisC4DetailEntity.setSdChargeNm(detailArray.getJSONObject(i).getString("field0088"));//费用名称
|
lexmisC4DetailEntity.setSdChargeNm(detailArray.getJSONObject(i).getString("field0088"));//费用名称
|
||||||
lexmisC4DetailEntity.setSdMoney1(detailArray.getJSONObject(i).getBigDecimal("field0089"));// 第 1 期金额,初次预算金额
|
lexmisC4DetailEntity.setSdMoney1(detailArray.getJSONObject(i).getBigDecimal("field0089"));// 第 1 期金额,初次预算金额
|
||||||
lexmisC4DetailEntity.setSdShareBudget(1);// 预算共用,1勾选0取消
|
lexmisC4DetailEntity.setSdShareBudget(1);// 预算共用,1勾选0取消
|
||||||
lexmisC4DetailEntity.setSd999(detailArray.getJSONObject(i).getString("field0069"));// 部门
|
lexmisC4DetailEntity.setSd999(mainData.getString("field0069"));// 部门
|
||||||
lexmisC4DetailEntity.setSd999Nm(detailArray.getJSONObject(i).getString("field0069"));// 部门
|
lexmisC4DetailEntity.setSd999Nm(bmmc.toString());// 部门
|
||||||
lexmisC4DetailEntity.setSdCtrlMode(2);// 当期控制强度,0不控制1弱控制2强控制
|
lexmisC4DetailEntity.setSdCtrlMode(2);// 当期控制强度,0不控制1弱控制2强控制
|
||||||
lexmisC4DetailEntity.setSdCtrlModeYear(2);// 超年控制强度,0不控制1弱控制2强控制
|
lexmisC4DetailEntity.setSdCtrlModeYear(2);// 超年控制强度,0不控制1弱控制2强控制
|
||||||
lexmisC4DetailEntity.setSdRefreshCtrl(1);// 是否需要升级强度标识
|
lexmisC4DetailEntity.setSdRefreshCtrl(1);// 是否需要升级强度标识
|
||||||
|
@ -201,4 +225,46 @@ public class LexmisC4ProjectPluginInitializer extends PluginBaseEntity{
|
||||||
//保存数据
|
//保存数据
|
||||||
return lexmisC4Service.saveLexmisC4(lexmisC4Entity);
|
return lexmisC4Service.saveLexmisC4(lexmisC4Entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author lvleigang
|
||||||
|
* @Description
|
||||||
|
* @Date 9:41 上午 2025/7/15
|
||||||
|
* @param path
|
||||||
|
* @param name
|
||||||
|
* @return java.lang.String
|
||||||
|
**/
|
||||||
|
private StringBuffer getbmmc(String path, List<C4ProjectEntity> name,StringBuffer bmmc) {
|
||||||
|
for (int i = 0; i < name.size(); i++) {
|
||||||
|
if(path.equals(name.get(i).getPath())){
|
||||||
|
if("".equals(bmmc.toString())){
|
||||||
|
bmmc.append(name.get(i).getBmmc());
|
||||||
|
getbmmc(path.substring(0,path.length()-4),name,bmmc);
|
||||||
|
}else {
|
||||||
|
bmmc.insert(0,name.get(i).getBmmc()+"->");
|
||||||
|
getbmmc(path.substring(0,path.length()-4),name,bmmc);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return bmmc;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void splitReverse(String str,List<String> asd ) {
|
||||||
|
if (str.isEmpty()) return;
|
||||||
|
if(str != null && !"".equals(str)){
|
||||||
|
asd.add(str);
|
||||||
|
}
|
||||||
|
if(str.length() <= 12){
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// 截取最后四位(或全部剩余字符)
|
||||||
|
int start = Math.max(0, str.length() - 4);
|
||||||
|
if(start == 0){
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// 递归处理剩余部分(如果有)
|
||||||
|
if (start > 0) {
|
||||||
|
splitReverse(str.substring(0, start),asd);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -326,9 +326,11 @@ public class NuoNuoServiceImpl extends BaseService<NuoNuoEntity, String> impleme
|
||||||
} else {
|
} else {
|
||||||
detail.put("withTaxFlag", 1);//含税标志,0:不含税,1:含税
|
detail.put("withTaxFlag", 1);//含税标志,0:不含税,1:含税
|
||||||
}
|
}
|
||||||
detail.put("goodsPrice", detailArray.getJSONObject(i).getString("field0154"));//含税单价
|
if(ys == null || !"03".equals(ys)){
|
||||||
detail.put("taxFreePrice", detailArray.getJSONObject(i).getString("field0155"));//不含税单价
|
detail.put("goodsPrice", detailArray.getJSONObject(i).getString("field0154"));//含税单价
|
||||||
detail.put("goodsNum", detailArray.getJSONObject(i).getString("field0157"));//数量
|
detail.put("taxFreePrice", detailArray.getJSONObject(i).getString("field0155"));//不含税单价
|
||||||
|
detail.put("goodsNum", detailArray.getJSONObject(i).getString("field0157"));//数量
|
||||||
|
}
|
||||||
detail.put("taxrate", detailArray.getJSONObject(i).getString("field0156"));//税率
|
detail.put("taxrate", detailArray.getJSONObject(i).getString("field0156"));//税率
|
||||||
detail.put("goodsCode", detailArray.getJSONObject(i).getString("field0158"));//税收分类编码
|
detail.put("goodsCode", detailArray.getJSONObject(i).getString("field0158"));//税收分类编码
|
||||||
detail.put("favouredPolicyCode", detailArray.getJSONObject(i).getString("field0170"));//优惠政策编码
|
detail.put("favouredPolicyCode", detailArray.getJSONObject(i).getString("field0170"));//优惠政策编码
|
||||||
|
@ -368,7 +370,6 @@ public class NuoNuoServiceImpl extends BaseService<NuoNuoEntity, String> impleme
|
||||||
sendData.put("realPropertyRentInfoList", realPropertyRentInfoList);//不动产租赁发票
|
sendData.put("realPropertyRentInfoList", realPropertyRentInfoList);//不动产租赁发票
|
||||||
}else if ("03".equals(ys)) {
|
}else if ("03".equals(ys)) {
|
||||||
sendData.put("specificFactor", "03");//建筑服务
|
sendData.put("specificFactor", "03");//建筑服务
|
||||||
JSONArray realPropertyRentInfoList = new JSONArray();
|
|
||||||
JSONObject detail = new JSONObject();
|
JSONObject detail = new JSONObject();
|
||||||
detail.put("buildingAddress", mainData.getString("field0182"));//建筑服务发生地
|
detail.put("buildingAddress", mainData.getString("field0182"));//建筑服务发生地
|
||||||
detail.put("detailedAddress", mainData.getString("field0180"));//不动产详细地址
|
detail.put("detailedAddress", mainData.getString("field0180"));//不动产详细地址
|
||||||
|
@ -381,8 +382,7 @@ public class NuoNuoServiceImpl extends BaseService<NuoNuoEntity, String> impleme
|
||||||
} else {
|
} else {
|
||||||
detail.put("crossCityFlag", 0);//跨地市标志
|
detail.put("crossCityFlag", 0);//跨地市标志
|
||||||
}
|
}
|
||||||
realPropertyRentInfoList.add(detail);
|
sendData.put("invoiceBuildingInfo", 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){
|
||||||
|
|
|
@ -26,5 +26,7 @@ public interface ILexmisC4Dao extends IBaseDao<LexmisC4Entity, String> {
|
||||||
int saveC4Check(LexmisC4CheckEntity lexmisC4CheckEntity);
|
int saveC4Check(LexmisC4CheckEntity lexmisC4CheckEntity);
|
||||||
|
|
||||||
int insertCheckSource(LexmisC4CheckSourceEntity lexmisC4CheckSourceEntity);
|
int insertCheckSource(LexmisC4CheckSourceEntity lexmisC4CheckSourceEntity);
|
||||||
|
|
||||||
|
List<LexmisC4DetailEntity> selectLexmisC4Detail(LexmisC4DetailEntity lexmisC4DetailEntity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -53,6 +53,12 @@ public class LexmisC4DaoImpl extends MybatisGenericDao<LexmisC4Entity, String> i
|
||||||
public int insertCheckSource(LexmisC4CheckSourceEntity entity) {
|
public int insertCheckSource(LexmisC4CheckSourceEntity entity) {
|
||||||
return super.insert(getSqlIdPrifx()+"insertCheckSource",entity);
|
return super.insert(getSqlIdPrifx()+"insertCheckSource",entity);
|
||||||
|
|
||||||
|
}
|
||||||
|
@DS("#entity.dataSourceCode")
|
||||||
|
@Override
|
||||||
|
public List<LexmisC4DetailEntity> selectLexmisC4Detail(LexmisC4DetailEntity entity) {
|
||||||
|
return (List<LexmisC4DetailEntity>) super.selectList(getSqlIdPrifx()+"selectLexmisC4Detail",entity);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@DS("#entity.dataSourceCode")
|
@DS("#entity.dataSourceCode")
|
||||||
|
|
|
@ -33,6 +33,8 @@ public class LexmisC4Entity extends BaseEntity {
|
||||||
private Integer smEMonth; // 截止月份
|
private Integer smEMonth; // 截止月份
|
||||||
private String smBeginYM; // 起始年月
|
private String smBeginYM; // 起始年月
|
||||||
private String smEndYM; // 截止年月
|
private String smEndYM; // 截止年月
|
||||||
|
private String bm; // 部门
|
||||||
|
private String bmmc; // 部门名称
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Author lvleigang
|
* @Author lvleigang
|
||||||
|
@ -260,5 +262,21 @@ public class LexmisC4Entity extends BaseEntity {
|
||||||
public void setSmEndYM(String smEndYM) {
|
public void setSmEndYM(String smEndYM) {
|
||||||
this.smEndYM = smEndYM;
|
this.smEndYM = smEndYM;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getBm() {
|
||||||
|
return bm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBm(String bm) {
|
||||||
|
this.bm = bm;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBmmc() {
|
||||||
|
return bmmc;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBmmc(String bmmc) {
|
||||||
|
this.bmmc = bmmc;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,39 +5,39 @@
|
||||||
<resultMap id="LexmisC4Map" type="com.hzya.frame.seeyon.lexmisC4.entity.LexmisC4Entity">
|
<resultMap id="LexmisC4Map" type="com.hzya.frame.seeyon.lexmisC4.entity.LexmisC4Entity">
|
||||||
<id property="id" column="ID" />
|
<id property="id" column="ID" />
|
||||||
<result property="smNo" column="SM_NO" />
|
<result property="smNo" column="SM_NO" />
|
||||||
<result property="smBudgetOrg" column="SM_BUDGET_ORG" />
|
<result property="smBudgetOrg" column="SM_BUDGETORG" />
|
||||||
<result property="smBudgetOrgNm" column="SM_BUDGET_ORG_NM" />
|
<result property="smBudgetOrgNm" column="SM_BUDGETORGNM" />
|
||||||
<result property="smAccount" column="SM_ACCOUNT" />
|
<result property="smAccount" column="SM_ACCOUNT" />
|
||||||
<result property="smAccountNm" column="SM_ACCOUNT_NM" />
|
<result property="smAccountNm" column="SM_ACCOUNTNM" />
|
||||||
<result property="smClose" column="SM_CLOSE" />
|
<result property="smClose" column="SM_CLOSE" />
|
||||||
<result property="smYear" column="SM_YEAR" />
|
<result property="smYear" column="SM_YEAR" />
|
||||||
<result property="smCaseno" column="SM_CASENO" />
|
<result property="smCaseno" column="SM_CASENO" />
|
||||||
<result property="smCasenm" column="SM_CASENM" />
|
<result property="smCasenm" column="SM_CASENM" />
|
||||||
<result property="smPlanNo" column="SM_PLAN_NO" />
|
<result property="smPlanNo" column="SM_PLANNO" />
|
||||||
<result property="smPlanNm" column="SM_PLAN_NM" />
|
<result property="smPlanNm" column="SM_PLANNM" />
|
||||||
<result property="smRem" column="SM_REM" />
|
<result property="smRem" column="SM_REM" />
|
||||||
<result property="smMaker" column="SM_MAKER" />
|
<result property="smMaker" column="SM_MAKER" />
|
||||||
<result property="smMakerNm" column="SM_MAKER_NM" />
|
<result property="smMakerNm" column="SM_MAKERNM" />
|
||||||
<result property="smCDate" column="SM_C_DATE" />
|
<result property="smCDate" column="SM_CDATE" />
|
||||||
<result property="smCheck" column="SM_CHECK" />
|
<result property="smCheck" column="SM_CHECK" />
|
||||||
<result property="smChecker" column="SM_CHECKER" />
|
<result property="smChecker" column="SM_CHECKER" />
|
||||||
<result property="smCheckerNm" column="SM_CHECKER_NM" />
|
<result property="smCheckerNm" column="SM_CHECKERNM" />
|
||||||
<result property="smChkDate" column="SM_CHK_DATE" />
|
<result property="smChkDate" column="SM_CHKDATE" />
|
||||||
<result property="smOAno" column="SM_OA_NO" />
|
<result property="smOAno" column="SM_OANO" />
|
||||||
<result property="smMonth" column="SM_MONTH" />
|
<result property="smMonth" column="SM_MONTH" />
|
||||||
<result property="smEYear" column="SM_E_YEAR" />
|
<result property="smEYear" column="SM_EYEAR" />
|
||||||
<result property="smEMonth" column="SM_E_MONTH" />
|
<result property="smEMonth" column="SM_EMONTH" />
|
||||||
<result property="smBeginYM" column="SM_BEGIN_YM" />
|
<result property="smBeginYM" column="SM_BEGINYM" />
|
||||||
<result property="smEndYM" column="SM_END_YM" />
|
<result property="smEndYM" column="SM_ENDYM" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
<!-- 根据条件查询预算主表记录 -->
|
<!-- 根据条件查询预算主表记录 -->
|
||||||
<select id="selectLexmisC4" parameterType="com.hzya.frame.seeyon.lexmisC4.entity.LexmisC4Entity" resultMap="LexmisC4Map">
|
<select id="selectLexmisC4" parameterType="com.hzya.frame.seeyon.lexmisC4.entity.LexmisC4Entity" resultMap="LexmisC4Map">
|
||||||
SELECT
|
SELECT
|
||||||
ID, SM_NO, SM_BUDGET_ORG, SM_BUDGET_ORG_NM, SM_ACCOUNT, SM_ACCOUNT_NM,
|
ID, SM_NO, SM_BUDGETORG, SM_BUDGETORGNM, SM_ACCOUNT, SM_ACCOUNTNM,
|
||||||
SM_CLOSE, SM_YEAR, SM_CASENO, SM_CASENM, SM_PLAN_NO, SM_PLAN_NM,
|
SM_CLOSE, SM_YEAR, SM_CASENO, SM_CASENM, SM_PLANNO, SM_PLANNM,
|
||||||
SM_REM, SM_MAKER, SM_MAKER_NM, SM_C_DATE, SM_CHECK, SM_CHECKER,
|
SM_REM, SM_MAKER, SM_MAKERNM, SM_CDATE, SM_CHECK, SM_CHECKER,
|
||||||
SM_CHECKER_NM, SM_CHK_DATE, SM_OA_NO, SM_MONTH, SM_E_YEAR, SM_E_MONTH,
|
SM_CHECKERNM, SM_CHKDATE, SM_OANO, SM_MONTH, SM_EYEAR, SM_EMONTH,
|
||||||
SM_BEGIN_YM, SM_END_YM
|
SM_BEGINYM, SM_ENDYM
|
||||||
FROM LexmisC4_BudgetSheet_Main
|
FROM LexmisC4_BudgetSheet_Main
|
||||||
WHERE 1=1
|
WHERE 1=1
|
||||||
<if test="id != null">
|
<if test="id != null">
|
||||||
|
@ -47,16 +47,16 @@
|
||||||
AND SM_NO = #{smNo}
|
AND SM_NO = #{smNo}
|
||||||
</if>
|
</if>
|
||||||
<if test="smBudgetOrg != null and smBudgetOrg != ''">
|
<if test="smBudgetOrg != null and smBudgetOrg != ''">
|
||||||
AND SM_BUDGET_ORG = #{smBudgetOrg}
|
AND SM_BUDGETORG = #{smBudgetOrg}
|
||||||
</if>
|
</if>
|
||||||
<if test="smBudgetOrgNm != null and smBudgetOrgNm != ''">
|
<if test="smBudgetOrgNm != null and smBudgetOrgNm != ''">
|
||||||
AND SM_BUDGET_ORG_NM = #{smBudgetOrgNm}
|
AND SM_BUDGETORGNM = #{smBudgetOrgNm}
|
||||||
</if>
|
</if>
|
||||||
<if test="smAccount != null and smAccount != ''">
|
<if test="smAccount != null and smAccount != ''">
|
||||||
AND SM_ACCOUNT = #{smAccount}
|
AND SM_ACCOUNT = #{smAccount}
|
||||||
</if>
|
</if>
|
||||||
<if test="smAccountNm != null and smAccountNm != ''">
|
<if test="smAccountNm != null and smAccountNm != ''">
|
||||||
AND SM_ACCOUNT_NM = #{smAccountNm}
|
AND SM_ACCOUNTNM = #{smAccountNm}
|
||||||
</if>
|
</if>
|
||||||
<if test="smClose != null">
|
<if test="smClose != null">
|
||||||
AND SM_CLOSE = #{smClose}
|
AND SM_CLOSE = #{smClose}
|
||||||
|
@ -71,10 +71,10 @@
|
||||||
AND SM_CASENM = #{smCasenm}
|
AND SM_CASENM = #{smCasenm}
|
||||||
</if>
|
</if>
|
||||||
<if test="smPlanNo != null and smPlanNo != ''">
|
<if test="smPlanNo != null and smPlanNo != ''">
|
||||||
AND SM_PLAN_NO = #{smPlanNo}
|
AND SM_PLANNO = #{smPlanNo}
|
||||||
</if>
|
</if>
|
||||||
<if test="smPlanNm != null and smPlanNm != ''">
|
<if test="smPlanNm != null and smPlanNm != ''">
|
||||||
AND SM_PLAN_NM = #{smPlanNm}
|
AND SM_PLANNM = #{smPlanNm}
|
||||||
</if>
|
</if>
|
||||||
<if test="smRem != null and smRem != ''">
|
<if test="smRem != null and smRem != ''">
|
||||||
AND SM_REM = #{smRem}
|
AND SM_REM = #{smRem}
|
||||||
|
@ -83,10 +83,10 @@
|
||||||
AND SM_MAKER = #{smMaker}
|
AND SM_MAKER = #{smMaker}
|
||||||
</if>
|
</if>
|
||||||
<if test="smMakerNm != null and smMakerNm != ''">
|
<if test="smMakerNm != null and smMakerNm != ''">
|
||||||
AND SM_MAKER_NM = #{smMakerNm}
|
AND SM_MAKERNM = #{smMakerNm}
|
||||||
</if>
|
</if>
|
||||||
<if test="smCDate != null">
|
<if test="smCDate != null">
|
||||||
AND SM_C_DATE = #{smCDate}
|
AND SM_CDATE = #{smCDate}
|
||||||
</if>
|
</if>
|
||||||
<if test="smCheck != null">
|
<if test="smCheck != null">
|
||||||
AND SM_CHECK = #{smCheck}
|
AND SM_CHECK = #{smCheck}
|
||||||
|
@ -95,28 +95,28 @@
|
||||||
AND SM_CHECKER = #{smChecker}
|
AND SM_CHECKER = #{smChecker}
|
||||||
</if>
|
</if>
|
||||||
<if test="smCheckerNm != null and smCheckerNm != ''">
|
<if test="smCheckerNm != null and smCheckerNm != ''">
|
||||||
AND SM_CHECKER_NM = #{smCheckerNm}
|
AND SM_CHECKERNM = #{smCheckerNm}
|
||||||
</if>
|
</if>
|
||||||
<if test="smChkDate != null">
|
<if test="smChkDate != null">
|
||||||
AND SM_CHK_DATE = #{smChkDate}
|
AND SM_CHKDATE = #{smChkDate}
|
||||||
</if>
|
</if>
|
||||||
<if test="smOAno != null and smOAno != ''">
|
<if test="smOAno != null and smOAno != ''">
|
||||||
AND SM_OA_NO = #{smOAno}
|
AND SM_OANO = #{smOAno}
|
||||||
</if>
|
</if>
|
||||||
<if test="smMonth != null">
|
<if test="smMonth != null">
|
||||||
AND SM_MONTH = #{smMonth}
|
AND SM_MONTH = #{smMonth}
|
||||||
</if>
|
</if>
|
||||||
<if test="smEYear != null">
|
<if test="smEYear != null">
|
||||||
AND SM_E_YEAR = #{smEYear}
|
AND SM_EYEAR = #{smEYear}
|
||||||
</if>
|
</if>
|
||||||
<if test="smEMonth != null">
|
<if test="smEMonth != null">
|
||||||
AND SM_E_MONTH = #{smEMonth}
|
AND SM_EMONTH = #{smEMonth}
|
||||||
</if>
|
</if>
|
||||||
<if test="smBeginYM != null and smBeginYM != ''">
|
<if test="smBeginYM != null and smBeginYM != ''">
|
||||||
AND SM_BEGIN_YM = #{smBeginYM}
|
AND SM_BEGINYM = #{smBeginYM}
|
||||||
</if>
|
</if>
|
||||||
<if test="smEndYM != null and smEndYM != ''">
|
<if test="smEndYM != null and smEndYM != ''">
|
||||||
AND SM_END_YM = #{smEndYM}
|
AND SM_ENDYM = #{smEndYM}
|
||||||
</if>
|
</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
@ -126,30 +126,30 @@
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="id != null">ID,</if>
|
<if test="id != null">ID,</if>
|
||||||
<if test="smNo != null and smNo != ''">SM_NO,</if>
|
<if test="smNo != null and smNo != ''">SM_NO,</if>
|
||||||
<if test="smBudgetOrg != null and smBudgetOrg != ''">SM_BUDGET_ORG,</if>
|
<if test="smBudgetOrg != null and smBudgetOrg != ''">SM_BUDGETORG,</if>
|
||||||
<if test="smBudgetOrgNm != null and smBudgetOrgNm != ''">SM_BUDGET_ORG_NM,</if>
|
<if test="smBudgetOrgNm != null and smBudgetOrgNm != ''">SM_BUDGETORGNM,</if>
|
||||||
<if test="smAccount != null and smAccount != ''">SM_ACCOUNT,</if>
|
<if test="smAccount != null and smAccount != ''">SM_ACCOUNT,</if>
|
||||||
<if test="smAccountNm != null and smAccountNm != ''">SM_ACCOUNT_NM,</if>
|
<if test="smAccountNm != null and smAccountNm != ''">SM_ACCOUNTNM,</if>
|
||||||
<if test="smClose != null">SM_CLOSE,</if>
|
<if test="smClose != null">SM_CLOSE,</if>
|
||||||
<if test="smYear != null">SM_YEAR,</if>
|
<if test="smYear != null">SM_YEAR,</if>
|
||||||
<if test="smCaseno != null and smCaseno != ''">SM_CASENO,</if>
|
<if test="smCaseno != null and smCaseno != ''">SM_CASENO,</if>
|
||||||
<if test="smCasenm != null and smCasenm != ''">SM_CASENM,</if>
|
<if test="smCasenm != null and smCasenm != ''">SM_CASENM,</if>
|
||||||
<if test="smPlanNo != null and smPlanNo != ''">SM_PLAN_NO,</if>
|
<if test="smPlanNo != null and smPlanNo != ''">SM_PLANNO,</if>
|
||||||
<if test="smPlanNm != null and smPlanNm != ''">SM_PLAN_NM,</if>
|
<if test="smPlanNm != null and smPlanNm != ''">SM_PLANNM,</if>
|
||||||
<if test="smRem != null and smRem != ''">SM_REM,</if>
|
<if test="smRem != null and smRem != ''">SM_REM,</if>
|
||||||
<if test="smMaker != null and smMaker != ''">SM_MAKER,</if>
|
<if test="smMaker != null and smMaker != ''">SM_MAKER,</if>
|
||||||
<if test="smMakerNm != null and smMakerNm != ''">SM_MAKER_NM,</if>
|
<if test="smMakerNm != null and smMakerNm != ''">SM_MAKERNM,</if>
|
||||||
<if test="smCDate != null">SM_C_DATE,</if>
|
<if test="smCDate != null">SM_CDATE,</if>
|
||||||
<if test="smCheck != null">SM_CHECK,</if>
|
<if test="smCheck != null">SM_CHECK,</if>
|
||||||
<if test="smChecker != null and smChecker != ''">SM_CHECKER,</if>
|
<if test="smChecker != null and smChecker != ''">SM_CHECKER,</if>
|
||||||
<if test="smCheckerNm != null and smCheckerNm != ''">SM_CHECKER_NM,</if>
|
<if test="smCheckerNm != null and smCheckerNm != ''">SM_CHECKERNM,</if>
|
||||||
<if test="smChkDate != null">SM_CHK_DATE,</if>
|
<if test="smChkDate != null">SM_CHKDATE,</if>
|
||||||
<if test="smOAno != null and smOAno != ''">SM_OA_NO,</if>
|
<if test="smOAno != null and smOAno != ''">SM_OANO,</if>
|
||||||
<if test="smMonth != null">SM_MONTH,</if>
|
<if test="smMonth != null">SM_MONTH,</if>
|
||||||
<if test="smEYear != null">SM_E_YEAR,</if>
|
<if test="smEYear != null">SM_EYEAR,</if>
|
||||||
<if test="smEMonth != null">SM_E_MONTH,</if>
|
<if test="smEMonth != null">SM_EMONTH,</if>
|
||||||
<if test="smBeginYM != null and smBeginYM != ''">SM_BEGIN_YM,</if>
|
<if test="smBeginYM != null and smBeginYM != ''">SM_BEGINYM,</if>
|
||||||
<if test="smEndYM != null and smEndYM != ''">SM_END_YM,</if>
|
<if test="smEndYM != null and smEndYM != ''">SM_ENDYM,</if>
|
||||||
</trim>
|
</trim>
|
||||||
VALUES
|
VALUES
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
@ -187,30 +187,30 @@
|
||||||
UPDATE LexmisC4_BudgetSheet_Main
|
UPDATE LexmisC4_BudgetSheet_Main
|
||||||
<set>
|
<set>
|
||||||
<if test="smNo != null and smNo != ''">SM_NO = #{smNo},</if>
|
<if test="smNo != null and smNo != ''">SM_NO = #{smNo},</if>
|
||||||
<if test="smBudgetOrg != null and smBudgetOrg != ''">SM_BUDGET_ORG = #{smBudgetOrg},</if>
|
<if test="smBudgetOrg != null and smBudgetOrg != ''">SM_BUDGETORG = #{smBudgetOrg},</if>
|
||||||
<if test="smBudgetOrgNm != null and smBudgetOrgNm != ''">SM_BUDGET_ORG_NM = #{smBudgetOrgNm},</if>
|
<if test="smBudgetOrgNm != null and smBudgetOrgNm != ''">SM_BUDGETORGNM = #{smBudgetOrgNm},</if>
|
||||||
<if test="smAccount != null and smAccount != ''">SM_ACCOUNT = #{smAccount},</if>
|
<if test="smAccount != null and smAccount != ''">SM_ACCOUNT = #{smAccount},</if>
|
||||||
<if test="smAccountNm != null and smAccountNm != ''">SM_ACCOUNT_NM = #{smAccountNm},</if>
|
<if test="smAccountNm != null and smAccountNm != ''">SM_ACCOUNTNM = #{smAccountNm},</if>
|
||||||
<if test="smClose != null">SM_CLOSE = #{smClose},</if>
|
<if test="smClose != null">SM_CLOSE = #{smClose},</if>
|
||||||
<if test="smYear != null">SM_YEAR = #{smYear},</if>
|
<if test="smYear != null">SM_YEAR = #{smYear},</if>
|
||||||
<if test="smCaseno != null and smCaseno != ''">SM_CASENO = #{smCaseno},</if>
|
<if test="smCaseno != null and smCaseno != ''">SM_CASENO = #{smCaseno},</if>
|
||||||
<if test="smCasenm != null and smCasenm != ''">SM_CASENM = #{smCasenm},</if>
|
<if test="smCasenm != null and smCasenm != ''">SM_CASENM = #{smCasenm},</if>
|
||||||
<if test="smPlanNo != null and smPlanNo != ''">SM_PLAN_NO = #{smPlanNo},</if>
|
<if test="smPlanNo != null and smPlanNo != ''">SM_PLANNO = #{smPlanNo},</if>
|
||||||
<if test="smPlanNm != null and smPlanNm != ''">SM_PLAN_NM = #{smPlanNm},</if>
|
<if test="smPlanNm != null and smPlanNm != ''">SM_PLANNM = #{smPlanNm},</if>
|
||||||
<if test="smRem != null and smRem != ''">SM_REM = #{smRem},</if>
|
<if test="smRem != null and smRem != ''">SM_REM = #{smRem},</if>
|
||||||
<if test="smMaker != null and smMaker != ''">SM_MAKER = #{smMaker},</if>
|
<if test="smMaker != null and smMaker != ''">SM_MAKER = #{smMaker},</if>
|
||||||
<if test="smMakerNm != null and smMakerNm != ''">SM_MAKER_NM = #{smMakerNm},</if>
|
<if test="smMakerNm != null and smMakerNm != ''">SM_MAKERNM = #{smMakerNm},</if>
|
||||||
<if test="smCDate != null">SM_C_DATE = #{smCDate},</if>
|
<if test="smCDate != null">SM_CDATE = #{smCDate},</if>
|
||||||
<if test="smCheck != null">SM_CHECK = #{smCheck},</if>
|
<if test="smCheck != null">SM_CHECK = #{smCheck},</if>
|
||||||
<if test="smChecker != null and smChecker != ''">SM_CHECKER = #{smChecker},</if>
|
<if test="smChecker != null and smChecker != ''">SM_CHECKER = #{smChecker},</if>
|
||||||
<if test="smCheckerNm != null and smCheckerNm != ''">SM_CHECKER_NM = #{smCheckerNm},</if>
|
<if test="smCheckerNm != null and smCheckerNm != ''">SM_CHECKERNM = #{smCheckerNm},</if>
|
||||||
<if test="smChkDate != null">SM_CHK_DATE = #{smChkDate},</if>
|
<if test="smChkDate != null">SM_CHKDATE = #{smChkDate},</if>
|
||||||
<if test="smOAno != null and smOAno != ''">SM_OA_NO = #{smOAno},</if>
|
<if test="smOAno != null and smOAno != ''">SM_OANO = #{smOAno},</if>
|
||||||
<if test="smMonth != null">SM_MONTH = #{smMonth},</if>
|
<if test="smMonth != null">SM_MONTH = #{smMonth},</if>
|
||||||
<if test="smEYear != null">SM_E_YEAR = #{smEYear},</if>
|
<if test="smEYear != null">SM_EYEAR = #{smEYear},</if>
|
||||||
<if test="smEMonth != null">SM_E_MONTH = #{smEMonth},</if>
|
<if test="smEMonth != null">SM_EMONTH = #{smEMonth},</if>
|
||||||
<if test="smBeginYM != null and smBeginYM != ''">SM_BEGIN_YM = #{smBeginYM},</if>
|
<if test="smBeginYM != null and smBeginYM != ''">SM_BEGINYM = #{smBeginYM},</if>
|
||||||
<if test="smEndYM != null and smEndYM != ''">SM_END_YM = #{smEndYM},</if>
|
<if test="smEndYM != null and smEndYM != ''">SM_ENDYM = #{smEndYM},</if>
|
||||||
</set>
|
</set>
|
||||||
WHERE ID = #{id}
|
WHERE ID = #{id}
|
||||||
</update>
|
</update>
|
||||||
|
@ -225,18 +225,18 @@
|
||||||
<id property="id" column="ID" />
|
<id property="id" column="ID" />
|
||||||
<!-- 基础信息字段 -->
|
<!-- 基础信息字段 -->
|
||||||
<result property="sdSort" column="SD_SORT" />
|
<result property="sdSort" column="SD_SORT" />
|
||||||
<result property="sdSheetNo" column="SD_SHEET_NO" />
|
<result property="sdSheetNo" column="SD_SHEETNO" />
|
||||||
<result property="sdPlanNo" column="SD_PLAN_NO" />
|
<result property="sdPlanNo" column="SD_PLANNO" />
|
||||||
<result property="sdPlanNm" column="SD_PLAN_NM" />
|
<result property="sdPlanNm" column="SD_PLANNM" />
|
||||||
<result property="sdMaker" column="SD_MAKER" />
|
<result property="sdMaker" column="SD_MAKER" />
|
||||||
<result property="sdMakerNm" column="SD_MAKER_NM" />
|
<result property="sdMakerNm" column="SD_MAKERNM" />
|
||||||
<result property="sdCDate" column="SD_C_DATE" />
|
<result property="sdCDate" column="SD_CDATE" />
|
||||||
<result property="sdCheck" column="SD_CHECK" />
|
<result property="sdCheck" column="SD_CHECK" />
|
||||||
<result property="sdChecker" column="SD_CHECKER" />
|
<result property="sdChecker" column="SD_CHECKER" />
|
||||||
<result property="sdCheckerNm" column="SD_CHECKER_NM" />
|
<result property="sdCheckerNm" column="SD_CHECKERNM" />
|
||||||
<result property="sdChkDate" column="SD_CHK_DATE" />
|
<result property="sdChkDate" column="SD_CHKDATE" />
|
||||||
<result property="sdChargeNo" column="SD_CHARGE_NO" />
|
<result property="sdChargeNo" column="SD_CHARGENO" />
|
||||||
<result property="sdChargeNm" column="SD_CHARGE_NM" />
|
<result property="sdChargeNm" column="SD_CHARGENM" />
|
||||||
|
|
||||||
<!-- 第1-12期金额字段 -->
|
<!-- 第1-12期金额字段 -->
|
||||||
<result property="sdMoney1" column="SD_MONEY1" />
|
<result property="sdMoney1" column="SD_MONEY1" />
|
||||||
|
@ -295,14 +295,14 @@
|
||||||
<result property="sdCover12" column="SD_COVER12" />
|
<result property="sdCover12" column="SD_COVER12" />
|
||||||
|
|
||||||
<!-- 控制相关字段 -->
|
<!-- 控制相关字段 -->
|
||||||
<result property="sdCtrlItemNo" column="SD_CTRL_ITEM_NO" />
|
<result property="sdCtrlItemNo" column="SD_CTRLITEMNO" />
|
||||||
<result property="sdCtrlItemNm" column="SD_CTRL_ITEM_NM" />
|
<result property="sdCtrlItemNm" column="SD_CTRLITEMNM" />
|
||||||
<result property="sdShareBudget" column="SD_SHARE_BUDGET" />
|
<result property="sdShareBudget" column="SD_SHAREBUDGET" />
|
||||||
<result property="sd999" column="SD_999" />
|
<result property="sd999" column="SD_999" />
|
||||||
<result property="sd999Nm" column="SD_999_NM" />
|
<result property="sd999Nm" column="SD_999_NM" />
|
||||||
<result property="sdCtrlMode" column="SD_CTRL_MODE" /> <!-- 当期控制强度 -->
|
<result property="sdCtrlMode" column="SD_CTRLMODE" /> <!-- 当期控制强度 -->
|
||||||
<result property="sdCtrlModeYear" column="SD_CTRL_MODE_YEAR" /> <!-- 超年控制强度(原字段名重复处理) -->
|
<result property="sdCtrlModeYear" column="SD_CTRLMODEY" /> <!-- 超年控制强度(原字段名重复处理) -->
|
||||||
<result property="sdRefreshCtrl" column="SD_REFRESH_CTRL" />
|
<result property="sdRefreshCtrl" column="SD_REFRESHCTRL" />
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<!-- 查询预算明细表记录 -->
|
<!-- 查询预算明细表记录 -->
|
||||||
|
@ -316,23 +316,23 @@
|
||||||
AND SD_SORT = #{sdSort}
|
AND SD_SORT = #{sdSort}
|
||||||
</if>
|
</if>
|
||||||
<if test="sdSheetNo != null and sdSheetNo != ''">
|
<if test="sdSheetNo != null and sdSheetNo != ''">
|
||||||
AND SD_SHEET_NO = #{sdSheetNo}
|
AND SD_SHEETNO = #{sdSheetNo}
|
||||||
</if>
|
</if>
|
||||||
<if test="sdPlanNo != null and sdPlanNo != ''">
|
<if test="sdPlanNo != null and sdPlanNo != ''">
|
||||||
AND SD_PLAN_NO = #{sdPlanNo}
|
AND SD_PLANNO = #{sdPlanNo}
|
||||||
</if>
|
</if>
|
||||||
<if test="sdPlanNm != null and sdPlanNm != ''">
|
<if test="sdPlanNm != null and sdPlanNm != ''">
|
||||||
AND SD_PLAN_NM = #{sdPlanNm}
|
AND SD_PLANNM = #{sdPlanNm}
|
||||||
</if>
|
</if>
|
||||||
<if test="sdMaker != null and sdMaker != ''">
|
<if test="sdMaker != null and sdMaker != ''">
|
||||||
AND SD_MAKER = #{sdMaker}
|
AND SD_MAKER = #{sdMaker}
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
<if test="sdMakerNm != null and sdMakerNm != ''">
|
<if test="sdMakerNm != null and sdMakerNm != ''">
|
||||||
AND SD_MAKER_NM = #{sdMakerNm}
|
AND SD_MAKERNM = #{sdMakerNm}
|
||||||
</if>
|
</if>
|
||||||
<if test="sdCDate != null">
|
<if test="sdCDate != null">
|
||||||
AND SD_C_DATE = #{sdCDate}
|
AND SD_CDATE = #{sdCDate}
|
||||||
</if>
|
</if>
|
||||||
<if test="sdCheck != null">
|
<if test="sdCheck != null">
|
||||||
AND SD_CHECK = #{sdCheck}
|
AND SD_CHECK = #{sdCheck}
|
||||||
|
@ -341,16 +341,16 @@
|
||||||
AND SD_CHECKER = #{sdChecker}
|
AND SD_CHECKER = #{sdChecker}
|
||||||
</if>
|
</if>
|
||||||
<if test="sdCheckerNm != null and sdCheckerNm != ''">
|
<if test="sdCheckerNm != null and sdCheckerNm != ''">
|
||||||
AND SD_CHECKER_NM = #{sdCheckerNm}
|
AND SD_CHECKERNM = #{sdCheckerNm}
|
||||||
</if>
|
</if>
|
||||||
<if test="sdChkDate != null">
|
<if test="sdChkDate != null">
|
||||||
AND SD_CHK_DATE = #{sdChkDate}
|
AND SD_CHKDATE = #{sdChkDate}
|
||||||
</if>
|
</if>
|
||||||
<if test="sdChargeNo != null and sdChargeNo != ''">
|
<if test="sdChargeNo != null and sdChargeNo != ''">
|
||||||
AND SD_CHARGE_NO = #{sdChargeNo}
|
AND SD_CHARGENO = #{sdChargeNo}
|
||||||
</if>
|
</if>
|
||||||
<if test="sdChargeNm != null and sdChargeNm != ''">
|
<if test="sdChargeNm != null and sdChargeNm != ''">
|
||||||
AND SD_CHARGE_NM = #{sdChargeNm}
|
AND SD_CHARGENM = #{sdChargeNm}
|
||||||
</if>
|
</if>
|
||||||
<if test="sdMoney1 != null">
|
<if test="sdMoney1 != null">
|
||||||
AND SD_MONEY1 = #{sdMoney1}
|
AND SD_MONEY1 = #{sdMoney1}
|
||||||
|
@ -497,13 +497,13 @@
|
||||||
AND SD_COVER12 = #{sdCover12}
|
AND SD_COVER12 = #{sdCover12}
|
||||||
</if>
|
</if>
|
||||||
<if test="sdCtrlItemNo != null and sdCtrlItemNo != ''">
|
<if test="sdCtrlItemNo != null and sdCtrlItemNo != ''">
|
||||||
AND SD_CTRL_ITEM_NO = #{sdCtrlItemNo}
|
AND SD_CTRLITEMNO = #{sdCtrlItemNo}
|
||||||
</if>
|
</if>
|
||||||
<if test="sdCtrlItemNm != null and sdCtrlItemNm != ''">
|
<if test="sdCtrlItemNm != null and sdCtrlItemNm != ''">
|
||||||
AND SD_CTRL_ITEM_NM = #{sdCtrlItemNm}
|
AND SD_CTRLITEMNM = #{sdCtrlItemNm}
|
||||||
</if>
|
</if>
|
||||||
<if test="sdShareBudget != null">
|
<if test="sdShareBudget != null">
|
||||||
AND SD_SHARE_BUDGET = #{sdShareBudget}
|
AND SD_SHAREBUDGET = #{sdShareBudget}
|
||||||
</if>
|
</if>
|
||||||
<if test="sd999 != null and sd999 != ''">
|
<if test="sd999 != null and sd999 != ''">
|
||||||
AND SD_999 = #{sd999}
|
AND SD_999 = #{sd999}
|
||||||
|
@ -512,32 +512,32 @@
|
||||||
AND SD_999_NM = #{sd999Nm}
|
AND SD_999_NM = #{sd999Nm}
|
||||||
</if>
|
</if>
|
||||||
<if test="sdCtrlMode != null">
|
<if test="sdCtrlMode != null">
|
||||||
AND SD_CTRL_MODE = #{sdCtrlMode}
|
AND SD_CTRLMODE = #{sdCtrlMode}
|
||||||
</if>
|
</if>
|
||||||
<if test="sdCtrlModeYear != null">
|
<if test="sdCtrlModeYear != null">
|
||||||
AND SD_CTRL_MODE_YEAR = #{sdCtrlModeYear}
|
AND SD_CTRLMODEY = #{sdCtrlModeYear}
|
||||||
</if>
|
</if>
|
||||||
<if test="sdRefreshCtrl != null">
|
<if test="sdRefreshCtrl != null">
|
||||||
AND SD_REFRESH_CTRL = #{sdRefreshCtrl}
|
AND SD_REFRESHCTRL = #{sdRefreshCtrl}
|
||||||
</if>
|
</if>
|
||||||
</select>
|
</select>
|
||||||
<!-- 插入预算明细表记录 -->
|
<!-- 插入预算明细表记录 -->
|
||||||
<insert id="insertLexmisC4Detail" parameterType="com.hzya.frame.seeyon.lexmisC4.entity.LexmisC4DetailEntity" useGeneratedKeys="true" keyProperty="id">
|
<insert id="insertLexmisC4Detail" parameterType="com.hzya.frame.seeyon.lexmisC4.entity.LexmisC4DetailEntity">
|
||||||
INSERT INTO LexmisC4_BudgetSheet_Detail
|
INSERT INTO LexmisC4_BudgetSheet_Detail
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="sdSort != null">SD_SORT,</if>
|
<if test="sdSort != null">SD_SORT,</if>
|
||||||
<if test="sdSheetNo != null and sdSheetNo != ''">SD_SHEET_NO,</if>
|
<if test="sdSheetNo != null and sdSheetNo != ''">SD_SHEETNO,</if>
|
||||||
<if test="sdPlanNo != null and sdPlanNo != ''">SD_PLAN_NO,</if>
|
<if test="sdPlanNo != null and sdPlanNo != ''">SD_PLANNO,</if>
|
||||||
<if test="sdPlanNm != null and sdPlanNm != ''">SD_PLAN_NM,</if>
|
<if test="sdPlanNm != null and sdPlanNm != ''">SD_PLANNM,</if>
|
||||||
<if test="sdMaker != null and sdMaker != ''">SD_MAKER,</if>
|
<if test="sdMaker != null and sdMaker != ''">SD_MAKER,</if>
|
||||||
<if test="sdMakerNm != null and sdMakerNm != ''">SD_MAKER_NM,</if>
|
<if test="sdMakerNm != null and sdMakerNm != ''">SD_MAKERNM,</if>
|
||||||
<if test="sdCDate != null">SD_C_DATE,</if>
|
<if test="sdCDate != null">SD_CDATE,</if>
|
||||||
<if test="sdCheck != null">SD_CHECK,</if>
|
<if test="sdCheck != null">SD_CHECK,</if>
|
||||||
<if test="sdChecker != null and sdChecker != ''">SD_CHECKER,</if>
|
<if test="sdChecker != null and sdChecker != ''">SD_CHECKER,</if>
|
||||||
<if test="sdCheckerNm != null and sdCheckerNm != ''">SD_CHECKER_NM,</if>
|
<if test="sdCheckerNm != null and sdCheckerNm != ''">SD_CHECKERNM,</if>
|
||||||
<if test="sdChkDate != null">SD_CHK_DATE,</if>
|
<if test="sdChkDate != null">SD_CHKDATE,</if>
|
||||||
<if test="sdChargeNo != null and sdChargeNo != ''">SD_CHARGE_NO,</if>
|
<if test="sdChargeNo != null and sdChargeNo != ''">SD_CHARGENO,</if>
|
||||||
<if test="sdChargeNm != null and sdChargeNm != ''">SD_CHARGE_NM,</if>
|
<if test="sdChargeNm != null and sdChargeNm != ''">SD_CHARGENM,</if>
|
||||||
<if test="sdMoney1 != null">SD_MONEY1,</if>
|
<if test="sdMoney1 != null">SD_MONEY1,</if>
|
||||||
<if test="sdMoney2 != null">SD_MONEY2,</if>
|
<if test="sdMoney2 != null">SD_MONEY2,</if>
|
||||||
<if test="sdMoney3 != null">SD_MONEY3,</if>
|
<if test="sdMoney3 != null">SD_MONEY3,</if>
|
||||||
|
@ -586,14 +586,14 @@
|
||||||
<if test="sdCover10 != null">SD_COVER10,</if>
|
<if test="sdCover10 != null">SD_COVER10,</if>
|
||||||
<if test="sdCover11 != null">SD_COVER11,</if>
|
<if test="sdCover11 != null">SD_COVER11,</if>
|
||||||
<if test="sdCover12 != null">SD_COVER12,</if>
|
<if test="sdCover12 != null">SD_COVER12,</if>
|
||||||
<if test="sdCtrlItemNo != null and sdCtrlItemNo != ''">SD_CTRL_ITEM_NO,</if>
|
<if test="sdCtrlItemNo != null and sdCtrlItemNo != ''">SD_CTRLITEMNO,</if>
|
||||||
<if test="sdCtrlItemNm != null and sdCtrlItemNm != ''">SD_CTRL_ITEM_NM,</if>
|
<if test="sdCtrlItemNm != null and sdCtrlItemNm != ''">SD_CTRLITEMNM,</if>
|
||||||
<if test="sdShareBudget != null">SD_SHARE_BUDGET,</if>
|
<if test="sdShareBudget != null">SD_SHAREBUDGET,</if>
|
||||||
<if test="sd999 != null and sd999 != ''">SD_999,</if>
|
<if test="sd999 != null and sd999 != ''">SD_999,</if>
|
||||||
<if test="sd999Nm != null and sd999Nm != ''">SD_999_NM,</if>
|
<if test="sd999Nm != null and sd999Nm != ''">SD_999_NM,</if>
|
||||||
<if test="sdCtrlMode != null">SD_CTRL_MODE,</if>
|
<if test="sdCtrlMode != null">SD_CTRLMODE,</if>
|
||||||
<if test="sdCtrlModeYear != null">SD_CTRL_MODE_YEAR,</if>
|
<if test="sdCtrlModeYear != null">SD_CTRLMODEY,</if>
|
||||||
<if test="sdRefreshCtrl != null">SD_REFRESH_CTRL,</if>
|
<if test="sdRefreshCtrl != null">SD_REFRESHCTRL,</if>
|
||||||
</trim>
|
</trim>
|
||||||
VALUES
|
VALUES
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
@ -673,18 +673,18 @@
|
||||||
UPDATE LexmisC4_BudgetSheet_Detail
|
UPDATE LexmisC4_BudgetSheet_Detail
|
||||||
<set>
|
<set>
|
||||||
<if test="sdSort != null">SD_SORT = #{sdSort},</if>
|
<if test="sdSort != null">SD_SORT = #{sdSort},</if>
|
||||||
<if test="sdSheetNo != null and sdSheetNo != ''">SD_SHEET_NO = #{sdSheetNo},</if>
|
<if test="sdSheetNo != null and sdSheetNo != ''">SD_SHEETNO = #{sdSheetNo},</if>
|
||||||
<if test="sdPlanNo != null and sdPlanNo != ''">SD_PLAN_NO = #{sdPlanNo},</if>
|
<if test="sdPlanNo != null and sdPlanNo != ''">SD_PLANNO = #{sdPlanNo},</if>
|
||||||
<if test="sdPlanNm != null and sdPlanNm != ''">SD_PLAN_NM = #{sdPlanNm},</if>
|
<if test="sdPlanNm != null and sdPlanNm != ''">SD_PLANNM = #{sdPlanNm},</if>
|
||||||
<if test="sdMaker != null and sdMaker != ''">SD_MAKER = #{sdMaker},</if>
|
<if test="sdMaker != null and sdMaker != ''">SD_MAKER = #{sdMaker},</if>
|
||||||
<if test="sdMakerNm != null and sdMakerNm != ''">SD_MAKER_NM = #{sdMakerNm},</if>
|
<if test="sdMakerNm != null and sdMakerNm != ''">SD_MAKERNM = #{sdMakerNm},</if>
|
||||||
<if test="sdCDate != null">SD_C_DATE = #{sdCDate},</if>
|
<if test="sdCDate != null">SD_CDATE = #{sdCDate},</if>
|
||||||
<if test="sdCheck != null">SD_CHECK = #{sdCheck},</if>
|
<if test="sdCheck != null">SD_CHECK = #{sdCheck},</if>
|
||||||
<if test="sdChecker != null and sdChecker != ''">SD_CHECKER = #{sdChecker},</if>
|
<if test="sdChecker != null and sdChecker != ''">SD_CHECKER = #{sdChecker},</if>
|
||||||
<if test="sdCheckerNm != null and sdCheckerNm != ''">SD_CHECKER_NM = #{sdCheckerNm},</if>
|
<if test="sdCheckerNm != null and sdCheckerNm != ''">SD_CHECKERNM = #{sdCheckerNm},</if>
|
||||||
<if test="sdChkDate != null">SD_CHK_DATE = #{sdChkDate},</if>
|
<if test="sdChkDate != null">SD_CHKDATE = #{sdChkDate},</if>
|
||||||
<if test="sdChargeNo != null and sdChargeNo != ''">SD_CHARGE_NO = #{sdChargeNo},</if>
|
<if test="sdChargeNo != null and sdChargeNo != ''">SD_CHARGENO = #{sdChargeNo},</if>
|
||||||
<if test="sdChargeNm != null and sdChargeNm != ''">SD_CHARGE_NM = #{sdChargeNm},</if>
|
<if test="sdChargeNm != null and sdChargeNm != ''">SD_CHARGENM = #{sdChargeNm},</if>
|
||||||
<if test="sdMoney1 != null">SD_MONEY1 = #{sdMoney1},</if>
|
<if test="sdMoney1 != null">SD_MONEY1 = #{sdMoney1},</if>
|
||||||
<if test="sdMoney2 != null">SD_MONEY2 = #{sdMoney2},</if>
|
<if test="sdMoney2 != null">SD_MONEY2 = #{sdMoney2},</if>
|
||||||
<if test="sdMoney3 != null">SD_MONEY3 = #{sdMoney3},</if>
|
<if test="sdMoney3 != null">SD_MONEY3 = #{sdMoney3},</if>
|
||||||
|
@ -733,14 +733,14 @@
|
||||||
<if test="sdCover10 != null">SD_COVER10 = #{sdCover10},</if>
|
<if test="sdCover10 != null">SD_COVER10 = #{sdCover10},</if>
|
||||||
<if test="sdCover11 != null">SD_COVER11 = #{sdCover11},</if>
|
<if test="sdCover11 != null">SD_COVER11 = #{sdCover11},</if>
|
||||||
<if test="sdCover12 != null">SD_COVER12 = #{sdCover12},</if>
|
<if test="sdCover12 != null">SD_COVER12 = #{sdCover12},</if>
|
||||||
<if test="sdCtrlItemNo != null and sdCtrlItemNo != ''">SD_CTRL_ITEM_NO = #{sdCtrlItemNo},</if>
|
<if test="sdCtrlItemNo != null and sdCtrlItemNo != ''">SD_CTRLITEMNO = #{sdCtrlItemNo},</if>
|
||||||
<if test="sdCtrlItemNm != null and sdCtrlItemNm != ''">SD_CTRL_ITEM_NM = #{sdCtrlItemNm},</if>
|
<if test="sdCtrlItemNm != null and sdCtrlItemNm != ''">SD_CTRLITEMNM = #{sdCtrlItemNm},</if>
|
||||||
<if test="sdShareBudget != null">SD_SHARE_BUDGET = #{sdShareBudget},</if>
|
<if test="sdShareBudget != null">SD_SHAREBUDGET = #{sdShareBudget},</if>
|
||||||
<if test="sd999 != null and sd999 != ''">SD_999 = #{sd999},</if>
|
<if test="sd999 != null and sd999 != ''">SD_999 = #{sd999},</if>
|
||||||
<if test="sd999Nm != null and sd999Nm != ''">SD_999_NM = #{sd999Nm},</if>
|
<if test="sd999Nm != null and sd999Nm != ''">SD_999_NM = #{sd999Nm},</if>
|
||||||
<if test="sdCtrlMode != null">SD_CTRL_MODE = #{sdCtrlMode},</if>
|
<if test="sdCtrlMode != null">SD_CTRLMODE = #{sdCtrlMode},</if>
|
||||||
<if test="sdCtrlModeYear != null">SD_CTRL_MODE_YEAR = #{sdCtrlModeYear},</if>
|
<if test="sdCtrlModeYear != null">SD_CTRLMODEY = #{sdCtrlModeYear},</if>
|
||||||
<if test="sdRefreshCtrl != null">SD_REFRESH_CTRL = #{sdRefreshCtrl},</if>
|
<if test="sdRefreshCtrl != null">SD_REFRESHCTRL = #{sdRefreshCtrl},</if>
|
||||||
</set>
|
</set>
|
||||||
WHERE ID = #{id}
|
WHERE ID = #{id}
|
||||||
</update>
|
</update>
|
||||||
|
@ -752,8 +752,8 @@
|
||||||
|
|
||||||
<select id="queryXmList" parameterType="com.hzya.frame.seeyon.lexmisC4.entity.LexmisC4Entity" resultMap="LexmisC4Map">
|
<select id="queryXmList" parameterType="com.hzya.frame.seeyon.lexmisC4.entity.LexmisC4Entity" resultMap="LexmisC4Map">
|
||||||
SELECT
|
SELECT
|
||||||
Ca_No as SM_CASE_NO,
|
Ca_No as SM_CASENO,
|
||||||
Ca_Name as SM_CASE_NM
|
Ca_Name as SM_CASENM
|
||||||
FROM LexmisC4_Case
|
FROM LexmisC4_Case
|
||||||
<trim prefix="where" prefixOverrides="and">
|
<trim prefix="where" prefixOverrides="and">
|
||||||
<if test="smCaseno != null and smCaseno != ''">
|
<if test="smCaseno != null and smCaseno != ''">
|
||||||
|
@ -784,21 +784,21 @@
|
||||||
INSERT INTO LexmisC4_BudgetSheet_Check
|
INSERT INTO LexmisC4_BudgetSheet_Check
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="scNo != null and scNo != ''">sc_no,</if>
|
<if test="scNo != null and scNo != ''">sc_no,</if>
|
||||||
<if test="scSheetNo != null and scSheetNo != ''">sc_sheet_no,</if>
|
<if test="scSheetNo != null and scSheetNo != ''">sc_sheetno,</if>
|
||||||
<if test="scSheetID != null">sc_sheet_id,</if>
|
<if test="scSheetID != null">sc_sheetid,</if>
|
||||||
<if test="scSheetNum != null">sc_sheet_num,</if>
|
<if test="scSheetNum != null">sc_sheetnum,</if>
|
||||||
<if test="scMoney != null">sc_money,</if>
|
<if test="scMoney != null">sc_money,</if>
|
||||||
<if test="scMaker != null and scMaker != ''">sc_maker,</if>
|
<if test="scMaker != null and scMaker != ''">sc_maker,</if>
|
||||||
<if test="scMakerNm != null and scMakerNm != ''">sc_maker_nm,</if>
|
<if test="scMakerNm != null and scMakerNm != ''">sc_makernm,</if>
|
||||||
<if test="scCDate != null">sc_c_date,</if>
|
<if test="scCDate != null">sc_cdate,</if>
|
||||||
<if test="scCheck != null">sc_check,</if>
|
<if test="scCheck != null">sc_check,</if>
|
||||||
<if test="scChecker != null and scChecker != ''">sc_checker,</if>
|
<if test="scChecker != null and scChecker != ''">sc_checker,</if>
|
||||||
<if test="scCheckerNm != null and scCheckerNm != ''">sc_checker_nm,</if>
|
<if test="scCheckerNm != null and scCheckerNm != ''">sc_checkernm,</if>
|
||||||
<if test="scChkDate != null">sc_chk_date,</if>
|
<if test="scChkDate != null">sc_chkdate,</if>
|
||||||
<if test="scState != null">sc_state,</if>
|
<if test="scState != null">sc_state,</if>
|
||||||
<if test="scSource != null">sc_source,</if>
|
<if test="scSource != null">sc_source,</if>
|
||||||
<if test="scOANO != null and scOANO != ''">sc_oa_no,</if>
|
<if test="scOANO != null and scOANO != ''">sc_oano,</if>
|
||||||
<if test="scRecordID != null and scRecordID != ''">sc_record_id,</if>
|
<if test="scRecordID != null and scRecordID != ''">sc_recordid,</if>
|
||||||
</trim>
|
</trim>
|
||||||
VALUES
|
VALUES
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
|
|
@ -336,6 +336,14 @@ public class LexmisC4ServiceImpl extends BaseService<LexmisC4Entity, String> imp
|
||||||
entity.getDetailEntityList().get(i).setSdSort(sdSort);
|
entity.getDetailEntityList().get(i).setSdSort(sdSort);
|
||||||
sdSort = sdSort -1;
|
sdSort = sdSort -1;
|
||||||
lexmisC4Dao.insertLexmisC4Detail(entity.getDetailEntityList().get(i));
|
lexmisC4Dao.insertLexmisC4Detail(entity.getDetailEntityList().get(i));
|
||||||
|
LexmisC4DetailEntity lexmisC4DetailEntity = new LexmisC4DetailEntity();
|
||||||
|
lexmisC4DetailEntity.setDataSourceCode(entity.getDataSourceCode());
|
||||||
|
lexmisC4DetailEntity.setSdSort(entity.getDetailEntityList().get(i).getSdSort());
|
||||||
|
lexmisC4DetailEntity.setSdSheetNo(entity.getDetailEntityList().get(i).getSdSheetNo());
|
||||||
|
List<LexmisC4DetailEntity> lexmisC4DetailEntities = lexmisC4Dao.selectLexmisC4Detail(lexmisC4DetailEntity);
|
||||||
|
if(lexmisC4DetailEntities != null && lexmisC4DetailEntities.size() > 0){
|
||||||
|
entity.getDetailEntityList().get(i).setId(lexmisC4DetailEntities.get(0).getId());
|
||||||
|
}
|
||||||
logger.error("C4保存后是否返回id:"+entity.getDetailEntityList().get(i).getId());
|
logger.error("C4保存后是否返回id:"+entity.getDetailEntityList().get(i).getId());
|
||||||
LexmisC4CheckSourceEntity lexmisC4CheckSourceEntity = new LexmisC4CheckSourceEntity(entity.getDetailEntityList().get(i).getId(),smNo);
|
LexmisC4CheckSourceEntity lexmisC4CheckSourceEntity = new LexmisC4CheckSourceEntity(entity.getDetailEntityList().get(i).getId(),smNo);
|
||||||
lexmisC4CheckSourceEntity.setDataSourceCode(entity.getDataSourceCode());
|
lexmisC4CheckSourceEntity.setDataSourceCode(entity.getDataSourceCode());
|
||||||
|
|
Loading…
Reference in New Issue