Compare commits
3 Commits
2d30398385
...
4a57f9a3bc
| Author | SHA1 | Date |
|---|---|---|
|
|
4a57f9a3bc | |
|
|
e4b0d2fb3a | |
|
|
1df78c20a5 |
|
|
@ -220,6 +220,7 @@ public class AppBackApplyController extends BaseController {
|
|||
}
|
||||
for (BackApplyInfo backApplyInfo : record.getBackApplyDetails()) {
|
||||
backApplyInfo.setParentId(record.getParentId());
|
||||
backApplyService.updateBackInfo(record.getParentId(),record.getCompanyId());
|
||||
boolean re = backApplyService.upload(backApplyInfo) > 0;
|
||||
if (!re) {
|
||||
return AjaxResult.error("退料任务明细插入失败");
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ import com.bonus.sgzb.app.domain.TmTask;
|
|||
import com.bonus.sgzb.base.api.domain.BackApplyInfo;
|
||||
import com.bonus.sgzb.base.api.domain.MachinePart;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
|
@ -57,4 +58,6 @@ public interface AppBackApplyAppMapper {
|
|||
List<TmTask> getMaTypeDetails(BackApplyInfo backApplyInfo);
|
||||
|
||||
MachinePart getMachineParts(TmTask typeId);
|
||||
|
||||
void updateBackInfo(@Param("parentId") Integer parentId, @Param("companyId") String companyId);
|
||||
}
|
||||
|
|
@ -112,4 +112,6 @@ public interface AppBackApplyService {
|
|||
* @return int
|
||||
*/
|
||||
int refuse(BackApplyInfo record);
|
||||
|
||||
void updateBackInfo(Integer parentId, String companyId);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -203,4 +203,9 @@ public class AppBackApplyServiceImpl implements AppBackApplyService {
|
|||
return 1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateBackInfo(Integer parentId, String companyId) {
|
||||
appBackApplyMapper.updateBackInfo(parentId,companyId);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -337,6 +337,9 @@
|
|||
WHERE
|
||||
bai.id = #{id}
|
||||
</update>
|
||||
<update id="updateBackInfo">
|
||||
update back_apply_info set company_id = #{companyId} where id = #{parentId}
|
||||
</update>
|
||||
|
||||
<delete id="del">
|
||||
DELETE
|
||||
|
|
|
|||
|
|
@ -447,6 +447,7 @@
|
|||
<if test="level == 0">
|
||||
and mt.level = 4
|
||||
</if>
|
||||
and mt2.type_id is not null
|
||||
</select>
|
||||
|
||||
<update id="updateTypeNum">
|
||||
|
|
|
|||
Loading…
Reference in New Issue