Commit 5e3f00ff authored by 温志超's avatar 温志超

更新排序

parent 51910804
...@@ -48,6 +48,8 @@ public class MdWorkunitServiceImpl implements IMdWorkunitService { ...@@ -48,6 +48,8 @@ public class MdWorkunitServiceImpl implements IMdWorkunitService {
@Resource @Resource
private MdWorkstationMapper mdWorkstationMapper; private MdWorkstationMapper mdWorkstationMapper;
@Autowired
private MdWorkstation mdWorkstation;
/** /**
* 查询工作单元 * 查询工作单元
* *
...@@ -89,6 +91,11 @@ public class MdWorkunitServiceImpl implements IMdWorkunitService { ...@@ -89,6 +91,11 @@ public class MdWorkunitServiceImpl implements IMdWorkunitService {
@Override @Override
public int insertMdWorkunit(MdWorkunit mdWorkunit) { public int insertMdWorkunit(MdWorkunit mdWorkunit) {
mdWorkunit.createAction(); mdWorkunit.createAction();
if(mdWorkunit.getWorkstationId() != null){
MdWorkstation mdWorkstation = mdWorkstationMapper.selectMdWorkstationByWorkstationId(mdWorkunit.getWorkstationId());
if(mdWorkstation != null)
mdWorkunit.setWorkstationCode(mdWorkstation.getWorkstationCode());
}
return mdWorkunitMapper.insertMdWorkunit(mdWorkunit); return mdWorkunitMapper.insertMdWorkunit(mdWorkunit);
} }
......
...@@ -108,6 +108,7 @@ ...@@ -108,6 +108,7 @@
<if test="workstationId != null ">and ppsp.workstation_id = #{workstationId}</if> <if test="workstationId != null ">and ppsp.workstation_id = #{workstationId}</if>
<if test="processId != null ">and ppsp.process_id = #{processId}</if> <if test="processId != null ">and ppsp.process_id = #{processId}</if>
</where> </where>
order by ppsp.serial
</select> </select>
<select id="selectProProductionSolutionProcessByProductionSolutionProcessId" parameterType="Long" <select id="selectProProductionSolutionProcessByProductionSolutionProcessId" parameterType="Long"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment