This commit is contained in:
parent
7914432f44
commit
a1ab7cda31
|
|
@ -1388,8 +1388,9 @@ public class MaterialLeaseInfoServiceImpl implements MaterialLeaseInfoService {
|
||||||
// 班组类型固定传值
|
// 班组类型固定传值
|
||||||
tbTeam.setTypeId(1731L);
|
tbTeam.setTypeId(1731L);
|
||||||
}
|
}
|
||||||
|
BmTeam dto = new BmTeam();
|
||||||
BmTeam bmTeam = bmTeamMapper.selectByName(tbTeam);
|
dto.setTeamName(leaseApplyRequestVo.getLeaseApplyInfo().getTeamName());
|
||||||
|
BmTeam bmTeam = bmTeamMapper.selectByName(dto);
|
||||||
if (bmTeam == null) {
|
if (bmTeam == null) {
|
||||||
// 新增班组
|
// 新增班组
|
||||||
tbTeam.setCreateUser(SecurityUtils.getLoginUser().getUserid().toString());
|
tbTeam.setCreateUser(SecurityUtils.getLoginUser().getUserid().toString());
|
||||||
|
|
@ -1544,7 +1545,9 @@ public class MaterialLeaseInfoServiceImpl implements MaterialLeaseInfoService {
|
||||||
tbTeam.setRelPhone(StringUtils.isNotBlank(leaseApplyRequestVo.getLeaseApplyInfo().getRelPhone()) ? leaseApplyRequestVo.getLeaseApplyInfo().getRelPhone() : null);
|
tbTeam.setRelPhone(StringUtils.isNotBlank(leaseApplyRequestVo.getLeaseApplyInfo().getRelPhone()) ? leaseApplyRequestVo.getLeaseApplyInfo().getRelPhone() : null);
|
||||||
// 班组类型固定传值
|
// 班组类型固定传值
|
||||||
tbTeam.setTypeId(1731L);
|
tbTeam.setTypeId(1731L);
|
||||||
BmTeam bmTeam = bmTeamMapper.selectByName(tbTeam);
|
BmTeam dto = new BmTeam();
|
||||||
|
dto.setTeamName(leaseApplyRequestVo.getLeaseApplyInfo().getTeamName());
|
||||||
|
BmTeam bmTeam = bmTeamMapper.selectByName(dto);
|
||||||
if (bmTeam == null) {
|
if (bmTeam == null) {
|
||||||
// 新增班组
|
// 新增班组
|
||||||
tbTeam.setCreateUser(SecurityUtils.getLoginUser().getUserid().toString());
|
tbTeam.setCreateUser(SecurityUtils.getLoginUser().getUserid().toString());
|
||||||
|
|
|
||||||
|
|
@ -239,7 +239,9 @@ public class LeaseTaskServiceImpl implements ILeaseTaskService {
|
||||||
// 班组类型固定传值
|
// 班组类型固定传值
|
||||||
bmTeam.setTypeId(1731L);
|
bmTeam.setTypeId(1731L);
|
||||||
// 根据班组名称去bm_unit表查询班组信息
|
// 根据班组名称去bm_unit表查询班组信息
|
||||||
BmTeam bmTeam1 = bmTeamMapper.selectByName(bmTeam);
|
BmTeam dto = new BmTeam();
|
||||||
|
dto.setTeamName(StringUtils.isNotBlank(iwsTeamUserVo.getTeamName()) ? iwsTeamUserVo.getTeamName() : null);
|
||||||
|
BmTeam bmTeam1 = bmTeamMapper.selectByName(dto);
|
||||||
if (bmTeam1 == null) {
|
if (bmTeam1 == null) {
|
||||||
// 走新增逻辑
|
// 走新增逻辑
|
||||||
int result = bmTeamMapper.insert(bmTeam);
|
int result = bmTeamMapper.insert(bmTeam);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue