Compare commits

...

3 Commits

6 changed files with 15 additions and 0 deletions

View File

@ -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("退料任务明细插入失败");

View File

@ -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);
}

View File

@ -112,4 +112,6 @@ public interface AppBackApplyService {
* @return int
*/
int refuse(BackApplyInfo record);
void updateBackInfo(Integer parentId, String companyId);
}

View File

@ -203,4 +203,9 @@ public class AppBackApplyServiceImpl implements AppBackApplyService {
return 1;
}
@Override
public void updateBackInfo(Integer parentId, String companyId) {
appBackApplyMapper.updateBackInfo(parentId,companyId);
}
}

View File

@ -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

View File

@ -447,6 +447,7 @@
<if test="level == 0">
and mt.level = 4
</if>
and mt2.type_id is not null
</select>
<update id="updateTypeNum">