项目部测试bug
This commit is contained in:
parent
d995d72ed0
commit
e9008724c4
|
|
@ -157,7 +157,7 @@ public class BaseProjectServiceImpl implements IBaseProjectService
|
|||
int pro = projectMapper.insertProject(project);
|
||||
String delFileId = null;
|
||||
try{
|
||||
if(pro > SystemGlobal.SUCCESS_MIN_NUM){
|
||||
if(pro > SystemGlobal.SUCCESS_MIN_NUM && file!=null){
|
||||
R result = remoteFileService.mostUploadFile(file, SecurityConstants.INNER);
|
||||
if (result != null && result.getCode() == HttpStatus.ERROR) {
|
||||
log.error("人员照片上传失败");
|
||||
|
|
|
|||
|
|
@ -60,7 +60,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
|
||||
<insert id="insertProject" parameterType="com.bonus.common.entity.bracelet.vo.BaseProject" useGeneratedKeys="true" keyProperty="projectId">
|
||||
insert into tb_project_depart(
|
||||
|
||||
<if test="projectDepartName != null and projectDepartName != ''">depart_name,</if>
|
||||
<if test="projectHeadName != null and projectHeadName != ''">head_name,</if>
|
||||
<if test="contactInformation != null and contactInformation != ''">contact_information,</if>
|
||||
|
|
@ -68,7 +67,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="createBy != null and createBy != ''">create_user,</if>
|
||||
create_time,del_flag
|
||||
)values(
|
||||
<if test="projectId != null and projectId != 0">#{projectId},</if>
|
||||
<if test="projectDepartName != null and projectDepartName != ''">#{projectDepartName},</if>
|
||||
<if test="projectHeadName != null and projectHeadName != ''">#{projectHeadName},</if>
|
||||
<if test="contactInformation != null and contactInformation != ''">#{contactInformation},</if>
|
||||
|
|
|
|||
Loading…
Reference in New Issue