丽知:1、钉钉回调修改。
This commit is contained in:
parent
bf527532d0
commit
a9a81244ac
|
@ -396,26 +396,26 @@ public class CallBackServiceImpl implements CallBackService {
|
||||||
String bz = "";
|
String bz = "";
|
||||||
String fjJson="";
|
String fjJson="";
|
||||||
for (GetProcessInstanceResponseBody.GetProcessInstanceResponseBodyResultFormComponentValues formComponentValue : formComponentValues) {
|
for (GetProcessInstanceResponseBody.GetProcessInstanceResponseBodyResultFormComponentValues formComponentValue : formComponentValues) {
|
||||||
if ("费用所属公司".equals(formComponentValue.getValue())) {
|
if ("费用所属公司".equals(formComponentValue.getName())) {
|
||||||
corpName = formComponentValue.getName();
|
corpName = formComponentValue.getValue();
|
||||||
}
|
}
|
||||||
if ("费用所属部门".equals(formComponentValue.getValue())) {
|
if ("费用所属部门".equals(formComponentValue.getName())) {
|
||||||
deptName = formComponentValue.getName();
|
deptName = formComponentValue.getValue();
|
||||||
}
|
}
|
||||||
if ("项目所属类目".equals(formComponentValue.getValue())) {
|
if ("项目所属类目".equals(formComponentValue.getName())) {
|
||||||
xmName = formComponentValue.getName();
|
xmName = formComponentValue.getValue();
|
||||||
}
|
}
|
||||||
if ("费用所属项目".equals(formComponentValue.getValue())) {
|
if ("费用所属项目".equals(formComponentValue.getName())) {
|
||||||
fyName = formComponentValue.getName();
|
fyName = formComponentValue.getValue();
|
||||||
}
|
}
|
||||||
if ("申请理由".equals(formComponentValue.getValue())) {
|
if ("申请理由".equals(formComponentValue.getName())) {
|
||||||
ly = formComponentValue.getName();
|
ly = formComponentValue.getValue();
|
||||||
}
|
}
|
||||||
if ("申请金额(元)".equals(formComponentValue.getValue())) {
|
if ("申请金额(元)".equals(formComponentValue.getName())) {
|
||||||
je = formComponentValue.getName();
|
je = formComponentValue.getValue();
|
||||||
}
|
}
|
||||||
if ("备注".equals(formComponentValue.getValue())) {
|
if ("备注".equals(formComponentValue.getName())) {
|
||||||
bz = formComponentValue.getName();
|
bz = formComponentValue.getValue();
|
||||||
}
|
}
|
||||||
if("DDAttachment".equals(formComponentValue.getComponentType())){
|
if("DDAttachment".equals(formComponentValue.getComponentType())){
|
||||||
fjJson = formComponentValue.getValue();
|
fjJson = formComponentValue.getValue();
|
||||||
|
@ -439,6 +439,9 @@ public class CallBackServiceImpl implements CallBackService {
|
||||||
}
|
}
|
||||||
parentvo.setDwbm(bdCorpEntity.getUnitcode());
|
parentvo.setDwbm(bdCorpEntity.getUnitcode());
|
||||||
|
|
||||||
|
//djlxbm单据类型编码 采购付款单 D3
|
||||||
|
parentvo.setDjlxbm("D3");
|
||||||
|
|
||||||
//wldx 往来对象标识(0 客户 1供应商 2部门 3业务员 )
|
//wldx 往来对象标识(0 客户 1供应商 2部门 3业务员 )
|
||||||
parentvo.setWldx("2");
|
parentvo.setWldx("2");
|
||||||
|
|
||||||
|
@ -464,6 +467,7 @@ public class CallBackServiceImpl implements CallBackService {
|
||||||
billvo.setParentvo(parentvo);
|
billvo.setParentvo(parentvo);
|
||||||
billvo.setChildren(children);
|
billvo.setChildren(children);
|
||||||
mapStr = JSONUtil.toJsonStr(billvo);
|
mapStr = JSONUtil.toJsonStr(billvo);
|
||||||
|
mapStr="{\"billvo\":["+mapStr+"]}";
|
||||||
//推送u8c
|
//推送u8c
|
||||||
ZTResult ztResult = pushU8CByApiCode.pushByCode(OverallConstant.getOverAllValue("otheroutqzCode"), mapStr);
|
ZTResult ztResult = pushU8CByApiCode.pushByCode(OverallConstant.getOverAllValue("otheroutqzCode"), mapStr);
|
||||||
if ("false".equals(ztResult.getFlag())) {
|
if ("false".equals(ztResult.getFlag())) {
|
||||||
|
|
|
@ -29,9 +29,11 @@ public class DingU8cBillDaoImpl extends MybatisGenericDao<DingU8cBillEntity, Str
|
||||||
String u8cCodeCorp = dingU8cBillEntityNew.getU8cCodeCorp();
|
String u8cCodeCorp = dingU8cBillEntityNew.getU8cCodeCorp();
|
||||||
String u8cBillCode = dingU8cBillEntityNew.getU8cBillCode();
|
String u8cBillCode = dingU8cBillEntityNew.getU8cBillCode();
|
||||||
String u8cBillId = dingU8cBillEntityNew.getU8cBillId();
|
String u8cBillId = dingU8cBillEntityNew.getU8cBillId();
|
||||||
|
String dingTalkProcessId = dingU8cBillEntityNew.getDingTalkProcessId();
|
||||||
dingU8cBill.setU8cCodeCorp(u8cCodeCorp);
|
dingU8cBill.setU8cCodeCorp(u8cCodeCorp);
|
||||||
dingU8cBill.setU8cBillCode(u8cBillCode);
|
dingU8cBill.setU8cBillCode(u8cBillCode);
|
||||||
dingU8cBill.setU8cBillId(u8cBillId);
|
dingU8cBill.setU8cBillId(u8cBillId);
|
||||||
|
dingU8cBill.setDingTalkProcessId(dingTalkProcessId);
|
||||||
dingU8cBill.setSts("Y");
|
dingU8cBill.setSts("Y");
|
||||||
List<DingU8cBillEntity> query = this.query(dingU8cBill);
|
List<DingU8cBillEntity> query = this.query(dingU8cBill);
|
||||||
if (query.size() == 0) {
|
if (query.size() == 0) {
|
||||||
|
|
|
@ -87,10 +87,11 @@ public class QueryU8CEntityUtil {
|
||||||
* 根据公司主键查询全部部门
|
* 根据公司主键查询全部部门
|
||||||
*/
|
*/
|
||||||
public List<BdDeptdocEntity> queryBdDeptDocByPkCorp(String pkCorp){
|
public List<BdDeptdocEntity> queryBdDeptDocByPkCorp(String pkCorp){
|
||||||
BdDeptdocEntity bdDeptdocEntity = new BdDeptdocEntity();
|
BdDeptdocEntity entity = new BdDeptdocEntity();
|
||||||
bdDeptdocEntity.setDr(0);
|
entity.setDr(0);
|
||||||
bdDeptdocEntity.setPkCorp(pkCorp);
|
entity.setPkCorp(pkCorp);
|
||||||
List<BdDeptdocEntity> query = bdDeptdocDao.query(bdDeptdocEntity);
|
entity.setDataSourceCode(ProfilesActiveConstant.LETS_DATE_SOURCE);
|
||||||
|
List<BdDeptdocEntity> query = bdDeptdocDao.query(entity);
|
||||||
return query;
|
return query;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -98,29 +99,28 @@ public class QueryU8CEntityUtil {
|
||||||
* 根据公司主键、部门编码查询部门
|
* 根据公司主键、部门编码查询部门
|
||||||
*/
|
*/
|
||||||
public BdDeptdocEntity queryBdDeptDocByPkCorpAndDeptCode(String pkCorp,String deptCode){
|
public BdDeptdocEntity queryBdDeptDocByPkCorpAndDeptCode(String pkCorp,String deptCode){
|
||||||
BdDeptdocEntity bdDeptdocEntity = new BdDeptdocEntity();
|
BdDeptdocEntity entity = new BdDeptdocEntity();
|
||||||
bdDeptdocEntity.setDr(0);
|
entity.setDr(0);
|
||||||
bdDeptdocEntity.setPkCorp(pkCorp);
|
entity.setPkCorp(pkCorp);
|
||||||
bdDeptdocEntity.setDeptcode(deptCode);
|
entity.setDeptcode(deptCode);
|
||||||
List<BdDeptdocEntity> query = bdDeptdocDao.query(bdDeptdocEntity);
|
entity.setDataSourceCode(ProfilesActiveConstant.LETS_DATE_SOURCE);
|
||||||
|
List<BdDeptdocEntity> query = bdDeptdocDao.query(entity);
|
||||||
if (query.size() >= 1) {
|
if (query.size() >= 1) {
|
||||||
return query.get(0);
|
return query.get(0);
|
||||||
} else {
|
} else {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据公司主键、部门名称查询部门
|
* 根据公司主键、部门名称查询部门
|
||||||
*/
|
*/
|
||||||
public BdDeptdocEntity queryBdDeptDocByPkCorpAndDeptName(String pkCorp,String deptName) {
|
public BdDeptdocEntity queryBdDeptDocByPkCorpAndDeptName(String pkCorp,String deptName) {
|
||||||
BdDeptdocEntity bdDeptdocEntity = new BdDeptdocEntity();
|
BdDeptdocEntity entity = new BdDeptdocEntity();
|
||||||
bdDeptdocEntity.setDr(0);
|
entity.setDr(0);
|
||||||
bdDeptdocEntity.setPkCorp(pkCorp);
|
entity.setPkCorp(pkCorp);
|
||||||
bdDeptdocEntity.setDeptname(deptName);
|
entity.setDeptname(deptName);
|
||||||
List<BdDeptdocEntity> query = bdDeptdocDao.query(bdDeptdocEntity);
|
entity.setDataSourceCode(ProfilesActiveConstant.LETS_DATE_SOURCE);
|
||||||
|
List<BdDeptdocEntity> query = bdDeptdocDao.query(entity);
|
||||||
if (query.size() >= 1) {
|
if (query.size() >= 1) {
|
||||||
return query.get(0);
|
return query.get(0);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue